在网上查询资料说的是添加如下头文件 #include <stdlib.h> #include <stdio.h> 但是我的VS2015编译器中还是不正确,应该是添加头文件 #include <string>