初学者的小白问题

dickens88 2009-03-24 11:07:54
我第一次用vc.NET,写个HELLO WORLD都出错。。。。崩溃中,请问这是怎么回事?
#include<iostream>
using namespace std
void main()
{
cout<<"Hello Word!"<<endl;
}

1>------ 已启动生成: 项目: 算法1, 配置: Debug Win32 ------
1>正在嵌入清单...
1>mt.exe : general error c10100b1: Failed to load file "..\Debug\U1.exe". {_~0o
1>生成日志保存在“file://c:\Documents and Settings\Administrator\桌面\算法1\算法1\Debug\BuildLog.htm”
1>算法1 - 1 个错误,0 个警告
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
...全文
121 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
kbtjh 2009-03-25
  • 打赏
  • 举报
回复
C/C++ code
#include "stdafx.h"

int main()
{
std::cout < <"hello,world!" < <std::endl;
return 0;
}
redleafe 2009-03-25
  • 打赏
  • 举报
回复
在VC的非托管代码中,不要使用using namespace std。
coodd 2009-03-24
  • 打赏
  • 举报
回复
菜单:新建-> 项目
打开的对话框中:Visual C++-> win32控制台应用程序.
在"名称"中输入工程的名称,确定.
接下来的对话框中,下一步,完成.
在stdafx.h中添加:

C/C++ code
#include <iostream>

将工程名称.cpp中的内容替换为:

C/C++ code
#include "stdafx.h"

int main()
{
std::cout<<"hello,world!"<<std::endl;
return 0;
}

7,540

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧