I'm using Visual C++ express 2010.
Whats wrong with this code: (A video tutorial uses this code and works fine on theirs)
#include <iostream>
using namespace std;
int main(){
string myString = "hello";
cout << myString << endl;
return 0;
}
???
Says: error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(679): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char *)'