I have a vector of Student which has a field name.
I want to iterate over the vector.
void print(const vector& students) {
Instead of vector::iterator, use vector::const_iterator.
vector::iterator
vector::const_iterator