terminate2.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 17 行
C
17 行
// Test that an unhandled exception causes us to call terminate.#include <exception>#include <cstdlib>void my_terminate (){ std::exit (0);}int main (void){ std::set_terminate (my_terminate); throw 1; return 1;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?