文件名称:Dynamic-Memory-Management
-
所属分类:
- 标签属性:
- 上传时间:2014-07-22
-
文件大小:2.61kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Dynamic Memory Management.If the allocated memory is not freed when it s no longer necessary it will result in a memory leak. It is not specified what will happen to the leaked memory, but contemporary operating systems collect it when the program terminates. Memory leaks can be very dangerous because the system may run out of memory. To eliminate them, C++ provides a destructor member for every class where the programmer should deallocate all the memory it allocates inside the class. In other languages like Java or C# a garbage collector is used that figures out which memory blocks are no longer needed and deletes them, taking the burden of deallocation from the programmer s shoulders, but adding some overhead in runtime. In C++, you can use smart pointers that hold on to a piece of memory and deallocate that memory in their destructors.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Dynamic Memory Management/include/General.h
Dynamic Memory Management/include/utility/String.h
Dynamic Memory Management/String.c
Dynamic Memory Management/String_Test.c
Dynamic Memory Management/include/utility
Dynamic Memory Management/include
Dynamic Memory Management
Dynamic Memory Management/include/utility/String.h
Dynamic Memory Management/String.c
Dynamic Memory Management/String_Test.c
Dynamic Memory Management/include/utility
Dynamic Memory Management/include
Dynamic Memory Management
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
