编写了一个简单的程序如下:
#include <iostream.h> void main() { int i=5; cout << i ; } 编译出错,信息如下:
--------------------Configuration: 4 - Win32 Debug-------------------- Compiling... 4.c D:\c example\4.c(5) : error C2065: 'cout' : undeclared identifier D:\c example\4.c(5) : warning C4552: '<<' : operator has no effect; expected operator with side-effect Error executing cl.exe.
4.exe - 1 error(s), 1 warning(s) 请大家指教一下,我的include文件中有iostream.h头文件啊