C++-new操作符
摘要:
1,new操作符实际上包含三部分:operator new分配内存和调用构造函数初始化刚刚分配的内存,类型转换刚刚的指针。string* ps = new string("lalalala");相当于void* memory = operator new(sizeof(string));call s... 阅读全文
posted @ 2014-06-29 11:16 醉清风JM 阅读(614) 评论(0) 推荐(0)
浙公网安备 33010602011771号