我的c++程序哪里错了,很简单,可是我不会,在线等
来源:百度知道 编辑:UC知道 时间:2024/09/28 17:59:51
#include <iostream>
using namespace;
void main()
{
cout<<"hello c++"<<;
}
上面是我的代码,在vc++6.0里无法执行
e:\vc 6.0\microsoft visual studio\vc98\include\ios(9) : fatal error C1083: Cannot open include file: 'streambuf': No such file or directory
Error executing cl.exe.
1223.exe - 1 error(s), 0 warning(s)
上面是错误提示
三楼的,我不忍心啊,我按你的方法做了,提示:
e:\vc 6.0\microsoft visual studio\vc98\include\ios(9) : fatal error C1083: Cannot open include file: 'streambuf': No such file or directory
Error executing cl.exe.
我邮箱:gmingda@qq.com
1223.exe - 1 error(s), 0 warning(s)
改完后的代码是:
#include <iostream>
using namespace std;
void main()
{
cout<<"hello c++"<<endl;
}
using namespace;
void main()
{
cout<<"hello c++"<<;
}
上面是我的代码,在vc++6.0里无法执行
e:\vc 6.0\microsoft visual studio\vc98\include\ios(9) : fatal error C1083: Cannot open include file: 'streambuf': No such file or directory
Error executing cl.exe.
1223.exe - 1 error(s), 0 warning(s)
上面是错误提示
三楼的,我不忍心啊,我按你的方法做了,提示:
e:\vc 6.0\microsoft visual studio\vc98\include\ios(9) : fatal error C1083: Cannot open include file: 'streambuf': No such file or directory
Error executing cl.exe.
我邮箱:gmingda@qq.com
1223.exe - 1 error(s), 0 warning(s)
改完后的代码是:
#include <iostream>
using namespace std;
void main()
{
cout<<"hello c++"<<endl;
}
fatal error C1083: Cannot open include 好像是打开不了这个 <iostream> 库,你看下有没有这个库!!!
using namespace;改成
using namespace std;
cout<<"hello c++"<<;改成
cout<<"hello c++"<<endl;
编译不过我跳楼
光注意代码部分错误了...失误失误啊...
贴个邮箱出来吧,我给你把头文件发过去.
呵呵.楼上真有趣啊.
他编译不过,你真跳楼啊?
你的VC是否只是个免安装的绿色版本呢?如果是的,就是库文件和头文件没加载进来或者没有注册环境变量!等我晚上把这方面的问题放QQ空间里面贴出来
#include <iostream.h>
去掉using namespace std;