文件名称:Pointers
- 所属分类:
- JSP源码/Java
- 资源属性:
- [C/C++] [WORD]
- 上传时间:
- 2012-11-26
- 文件大小:
- 15kb
- 下载次数:
- 0次
- 提 供 者:
- 欧**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在JAVA 和 C# 中都有垃圾回收功能,程序员在分配一段内存后可以不再理会,而由垃圾回收自动回收,从而使程序员从复杂的内存管理中解脱出来。这是JAVA 和 C#的一大优点。而C++程序员在用 new 分配了一段内存后,还必须用 delete 释放,否则将造成资源泄漏。因此,一些C++ 书上经常告诫程序员:要养成好的习惯,new 与 delete 要成对出现,时刻记住将内存释放回系统。但是,事情只是这么简单吗?-In both JAVA and C#, garbage collection, in the allocation of a memory, the programmer can no longer ignore, and by recycling garbage collection automatically, so programmers from the complexity of memory management in earnest. JAVA and C# This is a big advantage. The C++ programmers with a new allocation of some memory, but also must delete the release, otherwise it will result in resource leaks. Therefore, some books on C++ programmers often warned: To develop good habits, new and delete to be in pairs, always remember that the memory is released back into the system. However, it is just that simple?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Pointers.doc