“未定义标识符string” 解决方法:
头文件加上
#include <iostream>using namespace std;
string是标准库的,要加std::string,或使用using namespace