malloc的使用注意事项

(c语言)malloc只是进行空间的申请,并没有赋予初始值。

所以申请了空间之后记得要调用构造函数在这里插入图片描述

posted @ 2019-04-05 23:37  gidear  阅读(185)  评论(0编辑  收藏  举报