well the following worked for me:
a iterator is basically a method for moving between the elements of a container. const_iterator is just one that doesn't allow you to change the elements' valueCode:#include <string> #include <vector> int main() { std::vector<std::string> vString(5); for (unsigned i=0; i<vString.size(); i++) { vString[i] = "Test"; } std::vector<std::string>::const_iterator it = vString.begin(); while (it != vString.end() ) cout<< *it++ << endl; }