First page Back Continue Last page Graphics

ITERATOR EXAMPLE

  • for ( vector<Student_info>::const_iterator
  • iter = students.begin();
  • iter != students.end();
  • ++iter )
  • {
  • cout << (*iter).name << endl;
  • }