求助!看下这个字符串复制函数strcpy
#include<stdio.h>void main()
{
int i;
char st1[10],st2[10];
printf("输入st2:\n");
scanf("%s",st2);
for(i=0;st2[i]!='\0';i++)
{
st1[i]=st2[i];
}
printf("%s",st1);
printf("\n");
}
2007-11-30 17:27
2007-11-30 17:32
2007-12-01 02:53