首页 | 本学科首页   官方微博 | 高级检索  
     

C~(++)语言面向对象的异常处理机制分析
引用本文:邵兰洁. C~(++)语言面向对象的异常处理机制分析[J]. 人天科学研究, 2009, 0(11)
作者姓名:邵兰洁
作者单位:北京化工大学北方学院信息学院
基金项目:"国家十一五"计划项目(FIB070335-B8-08)
摘    要:异常处理是程序开发的一个重要内容,C++语言为异常处理提供了更好的解决方案。分析了C++异常处理机制,重点强调了C++面向对象的异常处理,包括异常类、异常处理过程中对象的构造和析构、异常类的派生,这种分析有助于更好地在C++面向对象程序设计中正确使用异常处理技术,从而提高所开发系统的可靠性、健壮性。

关 键 词:C++  面向对象  异常处理  检查  抛出  捕捉

Analysis of Object Oriented Exception Handling Mechanism of C~(++)
Abstract:Exception handling is an important content in programming development,C++ provides a better solution to exception handling.This paper analyses exception handling mechanism of C++,puts much emphasis on object oriented exception handling of C++,which in-cludes exception class,object constructing and destructing in the process of exception handling,derivation of exception class.The analysis is helpful to make correct use of the exception handling mechanism in the object oriented programming of C++,and will imp...
Keywords:C++  Object Oriented  Exception Handling  Try  Throw  Catch
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号