把#include<iostream.h>改为:#include<iostream>
using namespace std;

#include<iostream.h>是C语言风格,但是在标准C 里面,是不用#include <iostream.h>的,而要使用#include <iostream>

在VC6是在C 标准出来前发布的,所以它可以使用#include <iostream.h>这形式。
VS2010采用标准C格式

相关文章:

  • 2021-06-10
  • 2022-01-27
  • 2021-11-17
  • 2021-06-27
  • 2021-12-26
  • 2021-11-22
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2022-01-19
  • 2021-10-25
  • 2021-10-29
  • 2022-01-07
  • 2021-12-03
  • 2022-01-19
相关资源
相似解决方案