首页 > c++新手遇到一个问题,百度不到答案,想请教大家。
头像
僻人
编辑于 2021-01-11 16:07
+ 关注

c++新手遇到一个问题,百度不到答案,想请教大家。

string s;
s = "abc"+'b';
cout<<s<<endl;
代码的输出是:crt\crtw32\stdcpp\locale0.cpp
string s;
s = "abc";
s += 'b';
cout <<s << endl;
代码的输出是:abcb
想请教一下这是什么原因?


全部评论

(9) 回帖
加载中...
话题 回帖

推荐话题

相关热帖

近期热帖

近期精华帖

热门推荐