#include "stdio.h"
#include "string.h"
void main()
{
char s1[50],s2[50];
int i;
printf("Input the S1 :");
gets(s1);
// for(i=0;s1[i]!='\0';i++)
// s2[i]=s1[i];
// s2[i]='\0';
strcpy(s2,s1);
// strcpy(s2,&s1[5]);
printf("The copy S1 :");
puts(s2);
}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。