c语言,strcpy
#include <stdio.h>
#include <string.h>
int main()
{
char string[10];
char *str="abcdefghij";
strcpy(string,str);
//strcpy原型
//strcpy(char *,const char *);
printf("%s\n",string);
return 0;
}
#include <string.h>
int main()
{
char string[10];
char *str="abcdefghij";
strcpy(string,str);
//strcpy原型
//strcpy(char *,const char *);
printf("%s\n",string);
return 0;
}