菜鸟问题:为什么不能输出字符????

jp1984 2004-03-15 03:12:54
初用VC。NET,就是一个输出hello,world,的程序,不知道为什么却有错误。。
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\iostream(5): fatal error C1083: 无法打开包含文件:“istream”: No such file or directory


在VC 6。0下能通过调试。。
不知道是不是因为丢失文件造成的,(在安装过程中有个忽略错误。)还是因为VC。NET有特殊的语法啊????
源代码就是这样的(我还没有菜到这个源码都写错)
#include<iostream.h>
main()
{
cout<<"hello,world!"<<endl;
}
...全文
31 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
pinelinda 2004-03-22
  • 打赏
  • 举报
回复
就按chensan(anders)的做法就行。
#include <iostream>
using namespace std;
jp1984 2004-03-16
  • 打赏
  • 举报
回复
#include<iostream>
#include "stdafx.h"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout<<"hello,world."<<endl;
return 0;
}

照样出现错误
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\iostream(5): fatal error C1083: 无法打开包含文件:“istream”: No such file or directory
hjlandxk 2004-03-16
  • 打赏
  • 举报
回复
嗬嗬,把#include<iostream.h>换成using namespace std;就行了!!
哈哈
hjlandxk 2004-03-16
  • 打赏
  • 举报
回复
同感,俺也是菜鸟
chensan 2004-03-16
  • 打赏
  • 举报
回复
#include <iostream>
using namespace std;

7,540

社区成员

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

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