主题:折腾一天了也许您进来一句话就解决了(在线等)
想学C++,今天下了个VC6.0
程序如下
#include <iostream>
using namespace std;
int main()
{
cout <<"hello";
return 0;
}
错误是:.cpp
e:\program files\vc\vc98\include\ios(9) : fatal error C1083: Cannot open include file: 'streambuf': No such file or directory
Error executing cl.exe.
1.obj - 1 error(s), 0 warning(s)
上网上查了一下说是路径问题下面是默认路径
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
C:\Program Files\Microsoft Visual Studio\VC98\BIN
C:\Program Files\Microsoft Visual Studio\Common\TOOLS
C:\Program Files\Microsoft Visual Studio\Common\TOOLS\WINNT
include files:
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
library files:
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
source files:
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC
我按我的具体路径都给改了
可是还是这个错误,我又下了一个STREAMBUF结果又出新错误了
但是把<iostream>改成<iostream.h>然后把using namespace std 那句去掉就可以通过
有人说是编译器太老了
可是到底是什么问题怎么解决啊
求告人指点
程序如下
#include <iostream>
using namespace std;
int main()
{
cout <<"hello";
return 0;
}
错误是:.cpp
e:\program files\vc\vc98\include\ios(9) : fatal error C1083: Cannot open include file: 'streambuf': No such file or directory
Error executing cl.exe.
1.obj - 1 error(s), 0 warning(s)
上网上查了一下说是路径问题下面是默认路径
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
C:\Program Files\Microsoft Visual Studio\VC98\BIN
C:\Program Files\Microsoft Visual Studio\Common\TOOLS
C:\Program Files\Microsoft Visual Studio\Common\TOOLS\WINNT
include files:
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
library files:
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
source files:
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC
我按我的具体路径都给改了
可是还是这个错误,我又下了一个STREAMBUF结果又出新错误了
但是把<iostream>改成<iostream.h>然后把using namespace std 那句去掉就可以通过
有人说是编译器太老了
可是到底是什么问题怎么解决啊
求告人指点