string s; s = "abc"+'b'; cout<<s<<endl;
string s; s = "abc"; s += 'b'; cout <<s << endl;
扫描二维码,关注牛客
下载牛客APP,随时随地刷题
全部评论
(9) 回帖