解题思路:
注意事项:
参考代码:
#include <stdio.h>
#include <math.h>
#include <string.h>
void f(char s[],char b[])
{
int i=0,count =0;
while(s[i]!='\0')
{
count++;
i++;
}
i=0;
while(b[i]!='\0')
{
s[count]=b[i];
i++;
count++;
}
s[count]='\0';
puts(s);
}
int main()
{
char s[80],b[80];
gets(s);
gets(b);
f(s,b);
return 0;
}
0.0分
0 人评分
字符串对比 (C语言代码)浏览:1426 |
WU-格式化数据输出 (C++代码)浏览:1222 |
10月月赛题解浏览:538 |
C语言训练-最大数问题 (C语言代码)浏览:612 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:450 |
【计算两点间的距离】 (C语言代码)浏览:856 |
WU-蛇行矩阵 (C++代码)浏览:642 |
文件操作浏览:693 |
Manchester-A+B for Input-Output Practice浏览:1820 |
WU-简单的a+b (C语言代码)浏览:866 |