#include <iostream> #include <iomanip> #include <vector> using namespace std; int main() { vector< string > svec( 10, string( "Hi" )); for(vector<string>::iterator myIt= svec.begin();myIt != svec.end();myIt++) { cout << *myIt; } cout << endl; }
cout << *myIt;
Error 1 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) 8
#include <string>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)