#include<iostream.h> 不用using namespace std; #include<iostream>要用using namespace std; 转载于:https://www.cnblogs.com/judes/p/8984530.html