首先要说明一点:cout重载了string类型,所以在c++ 中可以直接输出。
错误 :cout输出错误: 没有找到接受“utility::string_t”类型的右操作数的运算符(或没有可接受的转换)
此图片转自:https://www.cnblogs.com/mzct123/p/4876185.html
我碰到的这个错误是在使用C++ REST SDK 时报的错,原因是因为rest sdk的字符相关的入参是宽字符(wchr_t),所以在用cout输出string类型的值时,应该把cout改成wcout

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-01-17
  • 2021-09-26
  • 2021-06-11
  • 2021-05-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
相关资源
相似解决方案