Quote Originally Posted by Fellow View Post
I'd like to create with vector many persons:
person1
person2
...

"people" could/should be the iterator, shouldn't it?

In
Code:
for(int i=0; i<people.size(); i++)
	{
		cout<<(*people[i]).get_name();
	}
I thought "people" as an iterator is already working!?
people isn't an iterator, it's a vector. That code doesn't directly use iterators.