没有添加头文件<string>,cout不能直接输出string类的变量。 相关文章: 2022-12-23 2022-02-26 2022-12-23 2021-11-01 2022-12-23 2022-12-23 2022-12-23 2021-09-09