解题思路:用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语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码)浏览:590 |
模拟计算器 (C语言代码)浏览:886 |
C语言训练-立方和不等式 (C语言代码)浏览:749 |
【绝对值排序】 (C语言代码)浏览:715 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:781 |
【亲和数】 (C语言代码)浏览:598 |
Tom数 (C语言代码)浏览:525 |
企业奖金发放 (C语言代码)浏览:2320 |
1197求助浏览:629 |
杨辉三角 (C语言代码)浏览:677 |