摘要
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