“cout”: 未声明的标识符”

来自http://tunps.com/cout-undeclared-identifier

数据结构老师让用vs。尽量不用vc6.

写了个hello,world都出错了!“ error C2065: “cout”: 未声明的标识符”是怎么回事

原来   VS 2005里面是没有 iostream.h 这个文件的,要使用输入输出流只能:
#include<iostream>
using namespace std;         //我就是把这句少了!

via

About tunpishuang

just 4 fun·····
This entry was posted in 未分类 and tagged . Bookmark the permalink.

2 Responses to “cout”: 未声明的标识符”

  1. Jack! says:

    嗯哼~这个我知道~

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>