出现error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)错误的原因:
没有添加头文件<string>,cout不能直接输出string类的变量。
出现error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)错误的原因:
没有添加头文件<string>,cout不能直接输出string类的变量。