将#include改成了#include 再加上了一句 using namespace std; (VC6还是用#include "iostream.h",#include 的写法适合后期的VS版本,因为遵循C语言标准)