这是代码:
#include <iostream>
void f() {
throw 1;
std::cout << "f(): should not be printed!!\n";
std::cout << "f(): not should this!!\n";
}
int main(int, const char**) {
f();
std::cout << "main(): This not be printed!!\n";
return 0;
}
当作为控制台应用程序运行时,在调试模式下和调试器下没有堆栈展开并且 cout 语句被打印?