文件名称:Pointers
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:15.42kb
-
已下载: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.