#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<Windows.h>
int mystrcpy(char *p,char *p1)
{
while (*p1 != '\0')
{
*(p++) = *(p1++);
}
*p = '\0';
}
void main()
{
char a1[100] = "abcdefg";
char a[100];
mystrcpy(a,a1);
printf("%s", a);//打印结果
system("pause");
}