现在我把一段vc上的代码放到vs.net2003上面去运行,用的是vc++ win32控制台项目,可是编译时出错,原来代码中的#include "iostream.h"错误,提示是“无法打开包含文件iostream.h”这个是怎么回事啊?

解决方案 »

  1.   

    VC7有好像很多东西改过,就连CString也改为模板实现了,移植过去还是要花点时间调试一下。
      

  2.   

    #include<iostream.h>试过了,没用,现在就是要找到输入输出流的头文件......
      

  3.   

    #include<iostream>
    using namespace std;
      

  4.   

    #include  <iostream>
    using namespace std;
      

  5.   

    #include  <iostream.h>
    using namespace std;
    如果是MFC程序,应该不需要。