title: C++ List Iterators accessing different elements in the same object
body: <p>for List Iterators i can access different elements </p>
  
  <p>but i can only access one thing per object
   eg</p>
  
  <pre><code>class student{
  private : 
  string firstname;
  string lastname;
  // some other variables //etc...  
  
  public: 
  // some functions here ....
  };
  </code></pre>
  
  <p>in the list i can access and print all the first name with the List Iterators
  but how do I print 
  first name follow by last name in a List ?</p>