解题思路:不要局限其中,要跳出来
注意事项:未自定义函数,看着快乐就行了。那里不能用puts因为会有一个回车
参考代码:#include<stdio.h>
#include<string.h>
int main(){
int m;
char a[1000],b[1000];
gets(a);
gets(b);
m=strlen(a);
for(int i=0;i<m;i++)printf("%c",a[i]);//puts(a);
puts(b);
return 0;
}
0.0分
2 人评分
模拟计算器 (C语言代码)浏览:892 |
弟弟的作业 (C++代码)浏览:1304 |
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)浏览:439 |
A+B for Input-Output Practice (IV) (C语言代码)浏览:456 |
C语言训练-求1+2!+3!+...+N!的和 (C语言代码)浏览:790 |
C语言程序设计教程(第三版)课后习题6.11 (C语言代码)浏览:549 |
蚂蚁感冒 (C语言代码)浏览:1334 |
1035 题解浏览:785 |
C二级辅导-统计字符 (C语言代码)浏览:481 |
蛇行矩阵 (C语言代码)浏览:506 |