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