eh33.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 22 行
C
22 行
// Special g++ Options: -fexceptions// excess errors test - XFAIL a29k-*-* sparc64-*-elf z8k-*-* arm-*-pe#include <exception>void my_unexpected() { throw 42;}void foo() throw (int) { throw "Hi"; }int main() { std::set_unexpected (my_unexpected); try { foo(); } catch (int i) { if (i == 42) return 0; } return 1;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?