Hi all, I am having a problem with strings input.
and when i try to compile it in Watcom C/C++, it somehow returns:Code:#include <iostream> #include <string> using namespace std; main() { string temp; cin >> temp; return 0; }
cd D:\Cryptography
wmake -f D:\Cryptography\Tools.mk -h -e D:\Cryptography\Tools.exe
wpp386 main.cpp -i=C:\WATCOM\h;C:\WATCOM\h\nt -w4 -e25 -zq -od -d2 -6r -bt=nt -mf -xs -xr
main.cpp(25): Error! E157: col(13) left expression must be integral
main.cpp(25): Note! N717: col(13) left operand type is 'std::istream watcall (lvalue)'
main.cpp(25): Note! N718: col(13) right operand type is 'std::basic_string<char,std::char_traits<char>,std ::allocator<char>> (lvalue)'
Error(E42): Last command making (D:\Cryptography\main.obj) returned a bad status
Error(E02): Make execution terminated
Execution complete