void catchlabel() { if(vecs.empty()) return; else { cout << "The Sizeof the Vector is: " << vecs.size() << endl; cout << "Currently Stored Labels: " << endl; /* Error 1 */ for ( int i = 1, vector<string>::iterator it = vecs.begin(); it != vecs.end(); ++it , i++) cout << i << ". "<< *it << endl; cout << endl; } } I get the following error for:
1> error C2146: syntax error : missing ',' before identifier 'it'
How to fix this?