title: creating an array of structs in c++
body: <p>I'm trying to create an array of structs. Is the code below valid? I keep getting an <code>expected primary-expression before '{'</code> token error.</p>
  
  <pre><code>int main() {
    int pause;
    struct Customer {
      int uid;
      string name;
    };
  
    Customer customerRecords[2];
    customerRecords[0] = {25, "Bob Jones"};
    customerRecords[1] = {26, "Jim Smith"};
    cin &gt;&gt; pause;
    return 0;
  }
  </code></pre>