不使用C库函数,将字符串连接起来:输入两个字符串以回车符为结束,将这两个字符串连接起来生成一个新的字符串,输出这个新串(输入的两个字符串保持不变)。
#include<bits/stdc++.h> using namespace std; int main() { string s; string x,y; cin>>x>>y; s=x+y; cout<<s<<endl; return 0; }
#我不是来找茬的
https://blog.csdn.net/qq_38623623/article/details/81448595