常用的string不能在<iostream.h>使用的解决办法: 1、加载string的头文件,不要加 “ .h ”。 2、改<iostream.h>为<iostream>,加载命名空间 using namespace std.