Can someone help me with this? I am trying to grab a string from the user by doing this:
string word;
...
while(cin >> word){
...
}
Here is the error I'm getting:
error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' (or there is no acceptable conversion)
Thanks
string word;
...
while(cin >> word){
...
}
Here is the error I'm getting:
error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' (or there is no acceptable conversion)
Thanks