VC++报错,求助

[复制链接]
查看11 | 回复4 | 2009-2-26 18:50:18 | 显示全部楼层 |阅读模式
visual c++6.0报错:
--------------------Configuration: chengxu - Win32 Debug--------------------
Compiling...
1.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\chengxu\1.cpp(4) : error C2065: 'cout' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\chengxu\1.cpp(4) : error C2297: '<<' : illegal, right operand has type 'char [9]'
Error executing cl.exe.
chengxu.exe - 2 error(s), 0 warning(s)
请问各位大人,这是什么意思啊。。。。

回复

使用道具 举报

千问 | 2009-2-26 18:50:18 | 显示全部楼层
在你的文件前面加上#include 就好了...
回复

使用道具 举报

千问 | 2009-2-26 18:50:18 | 显示全部楼层
C:\Program Files\Microsoft Visual Studio\MyProjects\chengxu\1.cpp(4) : error C2065: 'cout' : undeclared identifier :cout 未定义C:\Program Files\Microsoft Visual Studio\MyProjects\...
回复

使用道具 举报

千问 | 2009-2-26 18:50:18 | 显示全部楼层
加头文件#include...
回复

使用道具 举报

千问 | 2009-2-26 18:50:18 | 显示全部楼层
#include ...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行