标题:初学者的问题
取消只看楼主
flywolfwn
Rank: 1
等 级:新手上路
帖 子:15
专家分:0
注 册:2006-10-30
结帖率:0
 问题点数:0 回复次数:0 
初学者的问题

编译总出现这样的错误:
------ 已启动生成: 项目: wnn1, 配置: Debug Win32 ------
正在编译...
wnn1.cpp
c:\documents and settings\wn\my documents\visual studio 2005\projects\wnn1\wnn1\wnn1.cpp(6) : error C2871: 'std' : a namespace with this name does not exist
c:\documents and settings\wn\my documents\visual studio 2005\projects\wnn1\wnn1\wnn1.cpp(10) : error C2065: 'cout' : undeclared identifier
c:\documents and settings\wn\my documents\visual studio 2005\projects\wnn1\wnn1\wnn1.cpp(10) : error C2065: 'endl' : undeclared identifier
c:\documents and settings\wn\my documents\visual studio 2005\projects\wnn1\wnn1\wnn1.cpp(11) : error C2065: 'cin' : undeclared identifier
c:\documents and settings\wn\my documents\visual studio 2005\projects\wnn1\wnn1\wnn1.cpp(11) : error C2228: left of '.get' must have class/struct/union
type is ''unknown-type''
生成日志保存在“file://c:\Documents and Settings\wn\My Documents\Visual Studio 2005\Projects\wnn1\wnn1\Debug\BuildLog.htm”
wnn1 - 5 个错误,0 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
----------------------------------------------------------------------------------------------------
代码也很简单就是:#include "stdafx.h"

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
cout << "hello" << endl;
cin.get();
return 0;
}
-----------------------------------------
请看看是怎么回事?

搜索更多相关主题的帖子: documents settings visual projects 
2007-03-25 14:19



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-126663-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.176113 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved