<span style="font-size:18px;">/*MyStrcpy()*/
#include <stdio.h>
void MyStrcpy(char *str1,char*str2);
void main()
{
char a[10],b[10];
scanf("%s",a);
MyStrcpy(b,a);
printf("%s",b);
}
void MyStrcpy(char *str1,char *str2)
{
while(*str2!='\0')
{
*str1=*str2;
str1++;
str2++;
}
*str1='\0';
}</span>
MyStrcpy
最新推荐文章于 2024-01-28 23:31:28 发布