由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - C++ Q19: throw 3
相关主题
请教:函数后面的 throw() 有意义么?《Exceptional C++ Style》这本书值得看么?
C++ exception handling 一问does this line get executed after exception caught
Two questions about handling exceptions in C++C++ namespace 弱问
C++ Q15: throwc++的问题
C++ Exception QuestionC++ 用户定义exception的标准用法是什么?
A try-catch problem in C++大家对 exception 都是怎么处理的?
C++: exception: out-of-order execution?请教一下,exception时,destructor一定会被调用么?
[合集] Exception Handling in C请问C++ exception后如何清理function stack上的内存资源?
相关话题的讨论汇总
话题: exception话题: happens话题: q19话题: c++
进入Programming版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
What happens if a function contains an exception specification and it
directly or indirectly throws an exception NOT listed in the specification?
a) Nothing happens.
b) The exception will result in a call to std::unexpected ().
c) The compiler will generate an error.
d) bThe library will call exit (1).
z****e
发帖数: 2024
2
b

?

【在 c**********e 的大作中提到】
: What happens if a function contains an exception specification and it
: directly or indirectly throws an exception NOT listed in the specification?
: a) Nothing happens.
: b) The exception will result in a call to std::unexpected ().
: c) The compiler will generate an error.
: d) bThe library will call exit (1).

r****t
发帖数: 10904
3
不考古又来了。

?

【在 c**********e 的大作中提到】
: What happens if a function contains an exception specification and it
: directly or indirectly throws an exception NOT listed in the specification?
: a) Nothing happens.
: b) The exception will result in a call to std::unexpected ().
: c) The compiler will generate an error.
: d) bThe library will call exit (1).

1 (共1页)
进入Programming版参与讨论
相关主题
请问C++ exception后如何清理function stack上的内存资源?C++ Exception Question
C++ 的 exception handlingA try-catch problem in C++
A C++ exception questionC++: exception: out-of-order execution?
Exceptional C++ code question[合集] Exception Handling in C
请教:函数后面的 throw() 有意义么?《Exceptional C++ Style》这本书值得看么?
C++ exception handling 一问does this line get executed after exception caught
Two questions about handling exceptions in C++C++ namespace 弱问
C++ Q15: throwc++的问题
相关话题的讨论汇总
话题: exception话题: happens话题: q19话题: c++