11 lines
268 B
C++
11 lines
268 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
//使用string 类定义字符串,完成字符串连接
|
|
string str1 = "C++", str2 = "程序设计";
|
|
string str3 = str1 + str2;//连接方式1
|
|
cout << str3 << endl;
|
|
return 0;
|
|
} |