解题思路:用string 的性质就可以解决了
注意事项:
参考代码:
#include <iostream> #include <string> using namespace std; int main(){ string str1,str2; while(cin>>str1>>str2){ cout<<str1+str2<<endl; } return 0; }
0.0分
4 人评分
C语言训练-列出最简真分数序列* (C语言代码)浏览:500 |
C语言训练-求1+2!+3!+...+N!的和 (C语言代码)浏览:533 |
不容易系列2 (C语言代码)浏览:589 |
【出圈】 (C语言代码)浏览:794 |
C语言训练-计算t=1+1/2+1/3+...+1/n (C语言代码)浏览:904 |
【绝对值排序】 (C语言代码)浏览:820 |
蛇行矩阵 (C语言代码)浏览:524 |
蚂蚁感冒 (C语言代码)浏览:1319 |
A+B for Input-Output Practice (IV) (C语言代码)浏览:484 |
C语言训练-亲密数 (C语言描述,反正怎么都能对)浏览:2156 |