Commit e6f3260
authored
update the result and exception error format
I have updated the result format by '' cout << "Result"<<" of "<< x << oper << y <<" is : "<< result << endl; '' in ### To fix the "divide by zero" error and ### To call the Calculator class member functions section, so that the user can better understand what kind of operators and operands he used during input process, so if he will get any error regarding operators and operand can be solved easily. The other thing which I have updated is an exception error message ''Math error: Attempted to divide by Zero'' , so that the user can understand what is zero exception error.1 parent 3c594af commit e6f3260
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
| 602 | + | |
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
| 714 | + | |
714 | 715 | | |
715 | 716 | | |
716 | 717 | | |
717 | 718 | | |
718 | 719 | | |
719 | 720 | | |
720 | | - | |
| 721 | + | |
721 | 722 | | |
722 | 723 | | |
723 | 724 | | |
| |||
0 commit comments