帮助 本站公告
您现在所在的位置:网站首页 > 知识中心 > 文献详情
文献详细Journal detailed

基于C++异常处理机制的研究
Discussion on the Exception Handling of C++

作  者: ; ;

机构地区: 东南大学

出  处: 《计算机技术与发展》 2007年第1期128-129,132,共3页

摘  要: 异常处理是程序开发的一个重要内容,异常处理的好坏关系到程序的友好程度和系统的稳定性。C++是一种纯面向对象的编程语言,其异常处理机制和普通的编程语言有很多不同的地方,有力地增强了C++程序的健壮性和容错性。文中从介绍其运行步骤入手,通过一个简单的例子,详细阐述了C++异常处理机制的规则和栈展开技术,并扼要地对比了函数调用和异常处理的异同点,以便更好地在C++面向对象程序设计中正确使用异常处理机制。 Exception handling plays a significant role in programming development. Its performance will influence the friendliness and stability of the system. As a complete object oriented programming language, the exception handling mechanism of C + + is very different from other programming language, and effectively improves robustness and tolerance of the programs. This paper began with the introduetion of the running steps, and then illustrated the rule of exception handling mechanism and the technology of stack unwinding by a test example. Finally it concisely compared the Similarities and differences of function transferring and exception handling in order to make precise use of the mechanism in the object oriented prngramming.

关 键 词: 异常处理 栈展开

领  域: [自动化与计算机技术] [自动化与计算机技术]

相关作者

相关机构对象

相关领域作者

作者 李文姬
作者 邵慧君
作者 杜松华
作者 周国林
作者 邢弘昊