C++ | 内存管理之 new/delete

new 分配失败可能情况(看编译器):

  1.抛出bad_alloc异常

  2.返回空指针

 

posted on 2015-09-26 00:32  Excavator  阅读(137)  评论(0)    收藏  举报

导航