期刊文献+

C++异常和资源自动回收

C++ Exception and Resource Automatic Collection
在线阅读 下载PDF
导出
摘要 C++是目前广泛采用的面向对象程序设计语言,提供了有效的异常机制;同时,C++提供了全局对象、类成员对象和局部对象的自动生成和删除,堆对象的生成和删除必须由C++程序员负责;在结合异常机制使用时,C++的这一特性给程序员带来了极大负担。提出了解决这一问题的方法,在实际应用中取得了理想的效果。 C++ is a famous object oriented programming language, it has four kind of object : global object, class member object, local object and heap object. C++ compiler automatic generates and destroies the front three kind of object, while C++ Programmer has the responsibility to generate and destroy heap object. when using with C++ exception mechanism, it is a heavy laden. In this paper, we discuss the problem, provide an approach to solve the problem and lead good effect in practice.
出处 《杭州电子工业学院学报》 2003年第1期13-15,共3页 Journal of Hangzhou Institute of Electronic Engineering
关键词 C++ 异常 资源回收 面向对象 程序设计语言 Exception Object Template Resource collection
  • 相关文献

参考文献2

  • 1EugeneOlafsen 王建华译.MFC Visual C++6 编程技术内幕[M].北京:机械工业出版社,2000.99-129.
  • 2BjarneStroustrup.The C++ Programming Language[M].北京:高等教育出版社,2001.355-386.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部