我被郁闷了
在.NET编译如下程序,选取择WIN32控制台程序,
#include <iostream>
void main ()
{
cout << "kdgdkhghg";
cin.get();
}
结果居然说COUT等未声明,太不明白了,
text1.cpp(5) : error C2065: “cout” : 未声明的标识符
text1.cpp(6) : error C2065: “cin” : 未声明的标识符
text1.cpp(6) : error C2228: “.get”的左侧必须有类/结构/联合类型
请高手指点一下!