d:\program files (x86)\visual c 6.0\common\msdev98\bin\1.cpp(2) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory Error executing cl.exe. 1.exe - 1 error(s), 0 warning(s)這是什么意思啊??
#include ?<stdlib.h>
#include ?<iostream>
using namespace std;
namespace ? A
{
int X=1;
void fun()
{
cout << "A"<< endl;
}
? ? ?
}
namespace B
{
int X=2;
void fun()
{
cout<<"B"<<endl;
}
}
int main(void)
{
cout<<A::X<<endl;
B::fun();
system ? ("pause");
return 0;
??
}
2016-04-09
是因為你使用的軟件問題,上面都顯示說不能打開iostream這個頭文件了
2016-04-09
還是不行
2016-04-09
你應該使用 #include<iostream.h>