catch(int) i cout<< except of deviding zero. In", cout<< that is ok,n int Div(int x, int y) if(y==0) 程序运行结果如下: throw y; 5/2=2 return xly except of deviding zero. that is okcatch(int) { cout<<"except of deviding zero.\n"; } cout<<"that is ok.\n"; } int Div(int x,int y) { if(y==0) throw y; return x/y; } 程序运行结果如下: 5/2=2 except of deviding zero. that is ok