Assuming that:
vector<string> mvec;
has some elements on it
Partial code:
for(vector<string>::iterator it1 = mvec.begin(); it1 != mvec.end(); ++it1) {
for(string::iterator it2 = it1->begin(); it2 != it1->end(); ++it2)
since:
it1->begin() deference the object and then invoke the member function begin() of that object, which object is it1 pointing to?
String?
Since
it1is aniteratorforvector<string>when you derefence it you will get astring.