#include ".\test1.h"
#include <iostream.h>
#using <mscorlib.dll>test1::test1(void)
{
}test1::~test1(void)
{
}main() {
cout<<"fff";
}编译时报
d:\workspace\c++\test\test\test1.cpp(2): fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory

解决方案 »

  1.   

    你是VC是什么版本?VC6以后版本?#include <iostream>而不是
    #include <iostream.h>
      

  2.   

    改成#include    <iostream  >  又报新的错:
    d:\workspace\c++\test\test\test1.cpp(14): error C2065: “cout” : 未声明的标识符
      

  3.   

    再加上using namespace std;
      

  4.   

    多谢楼上的,这次能编译过了,但调试时报:
    “无法启动调试,因为IIS管理服务没有响应”。关IIS什么事啊,我在在vs2003下建的c++空项目
      

  5.   

    IIS是vs2003的一部分,所以出现这种情况
      

  6.   

    #include <iostream.h>不是标准库,它是微软提供的,不需要using namespace std;#include    <iostream  >是c++标准库,需要using namespace std;
      

  7.   

    真不知道vc的项目和iis有什么关系,既然它提示了,你还是看看iis配置是否正确,如果不正确就重新安装iis,然后再试试。iis配置不正确的话,用vb建立web应用程序不会成功,不知道对别的有什么影响。
      

  8.   

    iis已经被我卸了,我现在的解决方法是编译后手动执行生成的EXE文件来调试,不过这也不是办法啊,有没有人遇到同样的情况。
      

  9.   

    解决方法是: 先把工程文件目录下的两个debug文件夹删除,然后再编译,就ok了