摘要:
#include "stdafx.h"#include <iostream>using namespace std;enum EHstate{ noErr, zeroOP,nega, severeError};enum EHstate state = noErr;int mathFunc(int i){ if(i == 0) { throw state; }}void calculate(int op){ try { mathFunc(op); } catch(EHstate &eobj)//声明为引用 { ... 阅读全文
posted @ 2011-10-25 13:27
韩冬冬
阅读(205)
评论(0)
推荐(0)

浙公网安备 33010602011771号