2018年8月6日

malloc和new

摘要: 在结构体中包含string类型时: eg. struct stuTest { string str; } stuTest* q = (stuTest*)mallco(sizeof(stuTest)); //(1) stuTest* p = new stuTest(); //(2) 如果使用(1)中的 阅读全文

posted @ 2018-08-06 15:53 阿飞、book 阅读(82) 评论(0) 推荐(0)

导航