MISRA C++:2008讲座(4) 异常机制的使用  

Exception Handling Mechanism

在线阅读下载全文

作  者:黄土琛[1] 邵贝贝[1] 

机构地区:[1]清华大学

出  处:《单片机与嵌入式系统应用》2009年第12期78-81,共4页Microcontrollers & Embedded Systems

摘  要:异常机制是C++崭新而高级的特性,比起传统的返回错误代码的做法,异常机制能够针对各种可能的错误提供更有效的解决方法,而且可以使正常代码和错误处理清晰划分开来。关于如何安全、可靠地使用异常机制,MISCRAC++给出了一些相关的规范。Exception handling mechanism is a new and advanced feature in C++ language.Traditionally,programmers dealt with errors by returning an error code.Now the exception handling mechanism can provide a more effective approach for handling all kinds of possible errors.It also separates error-handling code from normal code,which greatly clarifies the code.MISCRA C++:2008 gives a number of related norms on how to use this feature safely and reliably.

关 键 词:异常机制 MISCRA C++:2008 C++ 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象