|
|
вернуться в форумОбщий форумCompilation Error on "cin >> s; //where s is string" Послано Aideen 19 авг 2005 22:39 What's wrong with this: ### #include <iostream> using namespace std; string s; int main() { cin >> s; return 0; } ### I've toggled 'namespace std', 'iostream', 'string', '.h' and any other stuffs in my mind but it gets CE on operator >> of istream >> std:string. what shall I do? isn't judge using G++? --Aidin. Add this: #include <string> (-) |
|
|