C++中关于string类型究竟能不能用cout输出的问题(转载https://www.cnblogs.com/mzct123/p/4876185.html)
先让我讲下故事哈
一次在MFC中用cout输出一个string类型字符串,编译时出现这样一个错误:
error C2679: binary ',class std::allocator >' (or there is
no acceptable conversion)
以后我记住了C++中不能用cout输出string,所以我尽量避免,若用到string类型输出,则先将s
转载
2018-03-09 20:45:42 ·
269 阅读 ·
0 评论