“未定义标识符string” 解决方法: 头文件加上 #include <iostream>using namespace std; string是标准库的,要加std::string,或使用using namespace 相关文章: 2022-02-10 2022-01-07 2022-02-23 2021-06-20 2021-09-23 2022-12-23 2021-12-13 2022-12-23