/* * iterators.cpp * * Created on: Apr 3, 2014 * Author: carola */ #include #include using namespace std; int main(){ vector V; // fill up V V.push_back("hello"); V.push_back("world"); V.push_back("again"); vector::iterator it; for (it = V.begin(); it != V.end(); ++it) { cout << *it << endl; //V.push_back("5"); } return 0; }