摘要
内存的使用技术是所有程序设计员都重视的问题,C++内存使用,特别是动态内存使用技术更是C++程序设计员长期探讨的问题。合理使用内存是提高程序可靠性和适用性的一种有效方法,但如果动态内存使用不当,容易造成内存泄漏。文章讨论了C++内存分配及动态内存的分配和回收的方法及存在的问题和解决办法。
Every programmer must pay attention to their using of memory.Using of memory especially dynamic memory in C++ is still a popular topic discussed by C++ progrmmers.It is an effective way to improve the reliability and effective of programming when using memory well and will also lead to leak of memory when poorly used by programmers.This paper discusses the meomry and dynamic memory allocate and recycle way in C++ and at the same time the author puts forward some ideas of how to solve the ordinary problem in memory allocate and recycle.
出处
《浙江工贸职业技术学院学报》
2006年第2期52-56,46,共6页
Journal of Zhejiang Industry & Trade Vocational College
关键词
堆
内存分配
内存回收
指针
Heap
Memory allocate
Memory recycle
Point