1 如下图所示,VS中不支持iostream.h和fstream.h的说法
2 改成下面三行就可以编译通过了
#include<iostream>
#include <fstream>
using namespace std;