解决方案:

1、头文件添加#include<string>

2、头文件添加#include<iostream>

3、代码中所有的string修改为std::string

主要是第三步,可只尝试第三步,如果不可以再尝试第一、二步

Logo

更多推荐