题解 | #字符串拼接#
字符串拼接
http://www.nowcoder.com/practice/167be62a4f66497dbf318617cd14f57d
#include <cstring>
using namespace std;
int main() {
string s1, s2;
getline(cin, s1);
getline(cin, s2);
string s3=s1+s2;
int i;
for(i=0;i<=s3.length()-2;i++){
printf("%c",s3[i]);
}
printf("%c\n",s3[s3.length()-1]);
// write your code here......
return 0;
}