编译c++程序遇到问题error: ‘string’ has not been declared
解决方法:
增加头文件
#include <string>
如果还报错可能字符串驻留在std名称空间中,使用std::string或通过使用指令或使用声明将其引入范围。
编译c++程序遇到问题error: ‘string’ has not been declared
解决方法:
增加头文件
#include <string>
如果还报错可能字符串驻留在std名称空间中,使用std::string或通过使用指令或使用声明将其引入范围。