3、将两个字符串连接起来,不要用strcat函数。
# include <stdio.h>
int main()
{
char str1[80],str2[40];
int i=0,j=0;
printf("please enter the first string:");
gets(str1);
printf("\nplease enter the second strings:");
gets(str2);
while(str1[i]!='\0')
i++;
while(str1[j]!='\0')
{
str1[i]=str2[j];
i++;
j++;
}
str1[i]='\0';
printf("\nAfter some characters string is:%s \n",str1);
}