-5

I want to know that

string s;
char c;
s = s+c;

the following code can append a chracater to a string in standard c++ compiler? If no, then what should i do?

4

1 回答 1

3

Yes, this would work. You can try for yourself to be convinced.

于 2013-06-06T04:36:45.827 回答