{
strcat(str1,str 2);
返回str 1;
}
二:
char* catStr(char str1[],char str2[])
int I = 0;
int lenstr 1 = 0;
lenstr=strlen(str1)
對於(我;我& lt= strlen(str);i++)
str 1[lenstr++]= str 2[1];