错误显示:没有与这些操作数匹配的 "<<" 运算符 操作数类型为: std::ostream << std::string 错误改正:要在头文件中加入<string>头函数 转载于:https://www.cnblogs.com/swjtumao/p/10548790.html