[1]王方良 汤文成.基于C++异常处理机制的研究[J].计算机技术与发展,2007,(01):128-129.
 WANG Fang-liang,TANG Wen-cheng.Discussion on the Exception Handling of C + +[J].,2007,(01):128-129.
点击复制

基于C++异常处理机制的研究()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
期数:
2007年01期
页码:
128-129
栏目:
智能、算法、系统工程
出版日期:
1900-01-01

文章信息/Info

Title:
Discussion on the Exception Handling of C + +
文章编号:
1673-629X(2007)01-0128-02
作者:
王方良 汤文成
东南大学
Author(s):
WANG Fang-liang TANG Wen-cheng
Southeast University
关键词:
C++异常处理栈展开
Keywords:
C + + exception handlingstack unwinding
分类号:
TP311
文献标志码:
A
摘要:
异常处理是程序开发的一个重要内容,异常处理的好坏关系到程序的友好程度和系统的稳定性。C++是一种纯面向对象的编程语言,其异常处理机制和普通的编程语言有很多不同的地方,有力地增强了C++程序的健壮性和容错性。文中从介绍其运行步骤入手,通过一个简单的例子,详细阐述了C++异常处理机制的规则和栈展开技术,并扼要地对比了函数调用和异常处理的异同点,以便更好地在C++面向对象程序设计中正确使用异常处理机制
Abstract:
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

相似文献/References:

[1]吴永华 刘广钟.基于NS-2网络仿真协议的功能扩展[J].计算机技术与发展,2009,(12):63.
 WU Yong-hua,LIU Guang-zhong.Function Extension of Network Simulation Protocol Based on NS - 2[J].,2009,(01):63.
[2]胡萍 陈志鹏.基于线程池的高性能服务器软件的设计和实现[J].计算机技术与发展,2006,(08):49.
 HU Ping,CHEN Zhi-peng.Design and Realization of Software of High - Performance Server Based on Thread Pool Technology[J].,2006,(01):49.
[3]朱朝霞 王杨.Java本地方法在Windows注册表访问中的应用[J].计算机技术与发展,2006,(11):225.
 ZHU Zhao-xia,WANG Yang.Application about JNI How to Access to Windows Registry Table[J].,2006,(01):225.
[4]史森茂 邵翠萍 龚龙庆.一种PCI总线Master模块接口设计[J].计算机技术与发展,2012,(07):207.
 SHI Sen-mao,SHAO Cui-ping,GONG Long-qing.Design of PCI Master Interface[J].,2012,(01):207.
[5]丁月华 应时 贾向阳 王一兵[].一种基于异常分类的面向服务异常处理方法[J].计算机技术与发展,2012,(12):15.
 DING Yue-hua,YING Shi,JIA Xiang-yang,et al.A Service-oriented Exception Handling Method Based on Exception Classification[J].,2012,(01):15.
[6]祝晓林[][],张健[],李楠[]. 基于SPARC的地址非对齐异常处理研究[J].计算机技术与发展,2015,25(04):18.
 ZHU Xiao-lin[][],ZHANG Jian[],LI Nan[]. Research on Memory Access to Un-aligned Addresses Exception Based on SPARC[J].,2015,25(01):18.
[7]章 安,马明栋.基于 Tesseract 文字识别的预处理研究[J].计算机技术与发展,2021,31(01):73.[doi:10. 3969 / j. issn. 1673-629X. 2021. 01. 013]
 ZHANG An,MA Ming-dong.Research on Preprocessing Based on Tesseract Text Recognition[J].,2021,31(01):73.[doi:10. 3969 / j. issn. 1673-629X. 2021. 01. 013]
[8]曾 悦,马明栋.基于 Tesseract_OCR 文字识别的研究[J].计算机技术与发展,2021,31(11):76.[doi:10. 3969 / j. issn. 1673-629X. 2021. 11. 013]
 ZENG Yue,MA Ming-dong.Research on Text Recognition Based on Tesseract_OCR[J].,2021,31(01):76.[doi:10. 3969 / j. issn. 1673-629X. 2021. 11. 013]

备注/Memo

备注/Memo:
王方良(1977-),男,河南人,硕士研究生,研究方向为程序设计与数据库技术;汤文成,教授,研究方向为CAD/CAE/CAM/PDM/ERP
更新日期/Last Update: 1900-01-01