int main(void)
{
int d2 = 0;
int r = 0;
cin >> d1;
cin >> d2;
// 使用try...catch...捕获异常
try
{
r=division(4,0);
cout<<"The result of x/y is : "<<r<<endl;
}
catch(int &e)
{
cout<<e<<endl;
}
return 0;
}
慕粉18256005962
慕的地6079101
qq__5690
东方既白233
onemoo
随时随地看视频慕课网APP
相关分类