I have a vector of Student which has a field name.
I want to iterate over the vector.
void print(const vector& students) {
void print(const vector& students) { vector::const_iterator it; // const_iterator for(it = students.begin(); it != students.end(); it++) { cout << it->name << endl; } }