12
for(size_t n = 0; n < myvector.size(); n++) cout << myvector[n] << " ";
12345678
// ... (populate the vector) for (vector<string>::iterator n = names.begin(); n != names.end(); ++n) { cout << "Name: " << *n << endl; }