i want to itterate through the vector and want to check if entered string is present in the string vector or not.. so please help me to know how can i do it
i have done just as we do to itterate through vector<string>:
vector<string>::iterator it;
cout << "myvector contains:";
for ( it = file_user.begin() ; it != file_user.end(); it++ );
cout << (*it)<< " " ;
cout << endl;
but its showing error as follows
1>.\assignment2.cpp(117) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::basic_string<_Elem,_Traits,_Ax>' (or there is no acceptable conversion)
please tell me what is it.