miwaiwai

导航

字符串指针的错误用法

 char * pStr=(char *)malloc(1024);

可以用memcpy(pStr,"1234567890");

posted on 2023-01-29 11:28  米歪歪  阅读(15)  评论(0编辑  收藏  举报