正在加载图片...
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
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有