感觉自己真的不行


私信TA

用户名:Lee666

访问量:3082

签 名:

等  级
排  名 15068
经  验 801
参赛次数 0
文章发表 5
年  龄 0
在职情况 学生
学  校 广东科技学院
专  业 软件工程

  自我简介:

解题思路:用函数思想





注意事项:





参考代码:

#include <stdio.h>

#include <string.h>

int lianjie(char *a,char *b)

{

int la,lb;

la=strlen(a),lb=strlen(b);

int i,j=0;

for(i=la;i<=la+lb,j<lb;i++,j++)

{

a[i]=b[j];

}

}

int main()

{

char a[20],b[10];

gets(a);

gets(b);

lianjie(a,b);

int i,la=strlen(a),lb=strlen(b);

a[la+lb]='\0';

printf("%s",a);

return 0;


 

0.0分

1 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换

万能编程问答

代码解释器

  评论区