1 int main() 2 { 3 char str[20] ="XXXXXXXXXXXXXX"; 4 char *p = "hello"; 5 strcpy(str,p);//從p的位置拷貝字符串,把p後面的'\0'也拷貝過來.
確定! 回上一頁