<string.h>函数库中 strcpy 函数的功能:如strcpy(a,c),表示把c字符串复制到a中
如 c【】=“helloprogram”,a[100];要求输出a时输出c的字符串
#include<stdio.h>
#include<string.h>
int main()
{
char a[200],c[]="helloprograms";
strcpy(a,c);//strcpy函数的运用,表示把c 字符串复制到 a 中;
printf("%s",a);
return 0;
}