摘要
分析了malloc/free和new/delete两种方法实现动态内存申请与释放,说明了两者的区别及使用要点和内存耗尽的处理方式,从而进一步说明了常见内存错误及解决对策。
In this thesis, it is analyzed that the application and release of flexible memory can be accomplished in two ways, malloc/free and new/delete. Besides, the differences between the two ways, main points of using them and the means of dealing with memory being fully occupied are also illustrated and explained in details. Also, common mistakes occurring in memory are further discussed and countermeasures are pointed out in accordance.
出处
《安徽广播电视大学学报》
2004年第4期126-128,共3页
Journal of Anhui Radio & TV University