c++ iterate over vector of pointers code example
Example: c++ iterate over vector of pointers
for (vector:: iter = myVector.begin(); iter != myVector.end(); iter++)
(*iter)->display();
for (vector:: iter = myVector.begin(); iter != myVector.end(); iter++)
(*iter)->display();