C++中关于string类型究竟能不能用cout输出的问题
一次在MFC中用cout输出一个string类型字符串,编译时出现这样一个错误:error C2679: binary ‘<<’ : no operator defined which takes a right-hand operand of type ‘class std::basic_string<char,struct std::char_traits,class std::allocator >’ (or there isno acceptable conversion
原创
2020-07-30 15:48:07 ·
1369 阅读 ·
0 评论