📜  在 C++ 代码示例中来连接字符串

📅  最后修改于: 2022-03-11 14:44:45.767000             🧑  作者: Mango

代码示例1
char str1[] = "This ";
char str2[] = "is a string";
strcat (str1, str2); 
cout << str1 << endl;