📄 mainwzsignaltest.html
字号:
<TITLE>WZ 1.1: Signal handling</TITLE><H1>Signal Handling</H1><PRE>#include <signal.h>#include "coglib.hxx"static float z;float test(const float x){ float y=1; return y/x;} int main(){ try{ float x = test(0); wzOutputDefault("1/0 is ignored, 1/0 = <>\n"),x; }catch(wzMathError){ wzOutputDefault("1/0 causes <>\n"),"wzMathError"; }catch(...){ wzOutputDefault("1/0 causes <> exception\n"),"unknown"; } fine();}</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -