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;}
用cin輸入為什么不能正常顯示
慕粉18256005962
2016-12-19 13:43:02