?? catch_ml.cpp
字號:
#include <iostream.h>
void XHandler(int test)
{
try
{
if(test==0) throw test;
if(test==1) throw 'a';
if(test==2) throw 123.23;
}
catch(...)
{
cout << "Caught one." << endl;
}
}
void main(void)
{
cout << "Start: " << endl;
XHandler(0);
XHandler(1);
XHandler(2);
cout << "End";
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -