title: C++ structs incrementing
body: <p>I'm fairly new to programming and mostly self taught and I don't know much about the jargon so I'm not sure about how to search for this and therefore haven't found an answer through just searching.  Onto the question</p>
  
  <p>Is there anyway to increment a struct?  Like I would in for loops using an int.  I'm creating a simple program where I'd input multiple students and want to create multiple instances of structs that increment.  Example</p>
  
  <pre><code>struct student{
      string name;
      int id;
  }x[i];
  i++;
  </code></pre>
  
  <p>sorta like that.  Sorry if I'm a little confusing.  Hope someone can help me out.</p>