主页
C++
C++ 字符串串联(连接)
demo_strings_append
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
using namespace std; int main () { string firstName = "John "; string lastName = "Doe"; string fullName = firstName.append(lastName); cout << fullName; return 0; }
John Doe