#include<stdio.h>
void f(char s1[],char s2[])
{
int i=0,j=0;
while(s1[i]!='\0')
i++;
while(s2[j]!='\0')
s1[i++]=s2[j++];
}
main()
{
char s1[10],s2[10];
scanf("%s",s1);
scanf("%s",s2);
f(s1,s2);
printf("%s",s1);
return 0;
}
自定义字符串连接函数
最新推荐文章于 2024-04-16 14:00:12 发布