'commit'
This commit is contained in:
11
TangDou/LianXiTi50/46.cpp
Normal file
11
TangDou/LianXiTi50/46.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
//使用string 类定义字符串,完成字符串连接
|
||||
string str1 = "C++", str2 = "程序设计";
|
||||
string str3 = str1 + str2;//连接方式1
|
||||
cout << str3 << endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user