期刊文献+

基于C++异常处理机制的研究 被引量:1

Discussion on the Exception Handling of C++
下载PDF
导出
摘要 异常处理是程序开发的一个重要内容,异常处理的好坏关系到程序的友好程度和系统的稳定性。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.
机构地区 东南大学
出处 《计算机技术与发展》 2007年第1期128-129,132,共3页 Computer Technology and Development
关键词 C++ 异常处理 栈展开 C + + exception handling stack unwinding
  • 相关文献

参考文献3

二级参考文献8

  • 1裘宗燕.C++语言异常处理机制的研究[J].计算机科学,2003,30(11):155-156. 被引量:5
  • 2Harvey M.Deitel.Paul James Deitel 邱仲潘.C++大学教程[M].北京:电子工业出版社,2002..
  • 3.[EB/OL].http://www. net130. com/2004/8 - 25/162012. html [EB/OL],2004.
  • 4Koenig A,Stroustrup B. Exception Handling in C++. Jounal ofObject Oriented Programming, 1990,3 (2): 16 ~ 33
  • 5Stroustroup B. The Design and Evolution of C++, AddisonWesley, 1994
  • 6Buhr P A, Mok W Y R. Advanced exception handling mechanisms. IEEE Trans,on SE,2000,26(9) :820~836
  • 7Knudsen J L. Fault tolerance and exception handling in BETA, LNCS 2022,1~17 ,Springer-Verlag,2002
  • 8Dony C. A full object-orinted exception handling system: rationale and Smalltalk Implementation. Springer-Verlag, 2002. 18 ~ 38

共引文献4

同被引文献1

引证文献1

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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