谭浩强C程序设计第三版习题7.15

#include
#include
int main()
{


int i;
char s1[50];
char s2[20];
printf("please enter s1\n");
gets(s1);
printf("%s\n",s1);
printf("please enter s2\n");
gets(s2);
for(i=0;i s1[i]=s2[i];
s1[i]='\0';
printf("the s1 is   %s",s1);

return 0; 
}

你可能感兴趣的:(谭浩强C程序设计第三版习题7.15)