#include<string.h> int main() { char *s="hello"; char a[10]={"0"}; strcpy(a,s);//拷贝s字符串到a中,在string.h内定义的函数 return 0; }