strcpy用于拷贝字符或字符串,也就是char类型,strcpy(目的地,源头),其头文件是#include <string.h>
#define _CRT_SECURE_NO_WARNINGS 1
#include <string.h>
#include <stdio.h>
int main()
{
char arr1[20] = "hello word";
char arr2[20] = { 0 };
strcpy(arr2, arr1);
printf("%s", arr2);
return 0;
}