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)
So:
it1-> begin () to separate the object, and then call the member function begin () of this object, which object is it1 pointing to?
Line
source
share