<分区>
Possible Duplicate:
How do I concatenate multiple C++ strings on one line?
我会如何服用:
string test1 = "Hello ";
string test2 = "World!";
然后将它们连接成一个字符串?
<分区>
Possible Duplicate:
How do I concatenate multiple C++ strings on one line?
我会如何服用:
string test1 = "Hello ";
string test2 = "World!";
然后将它们连接成一个字符串?
最佳答案
怎么样
string test3 = test1 + test2;
或者也许
test1.append(test2);
关于c++ - 你如何连接两个字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7537820/