其实是头文件的引用方式不对,没有用新式的 #include "iostream" using namespace std; 的形式,而是采用了 #include "iostream.h" 的旧的引用方式,改回来就好了,呵呵