|
|
Error 1 error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\users\osman\programming\stroustrup_programming_using_c++\consoleapplication2\consoleapplication2\name.cpp 9 1 ConsoleApplication2 Error 2 error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\users\osman\programming\stroustrup_programming_using_c++\consoleapplication2\consoleapplication2\name.cpp 10 1 ConsoleApplication2 3 IntelliSense: no operator ">>" matches these operands operand types are: std::istream >> std::string c:\Users\Osman\programming\stroustrup_programming_using_c++\ConsoleApplication2\ConsoleApplication2\name.cpp 9 6 ConsoleApplication2 4 IntelliSense: no operator "<<" matches these operands operand types are: std::basic_ostream<char, std::char_traits<char>> << std::string c:\Users\Osman\programming\stroustrup_programming_using_c++\ConsoleApplication2\ConsoleApplication2\name.cpp 10 20 ConsoleApplication2 |
#include <string>
to use string, that'll fix your problem :)