写一函数,将两个字符串连接
在这里插入代码片
```#include<stdio.h>
#include<stdio.h>
void strcat(char t[],char s[])
{
int i,j;
i=j=0;
while(t[i]!='\0')
i++;
while(t[i++]=s[j++]);
}
int main()
{
char t[1000],s[1000];
scanf("%s",&t);
scanf("%s",&s);
strcat(t,s);
printf("%s",t);
return 0;
}