Design a fast, simple, easy to use calculators, plus, minus, multiply, in addition to, and other functions, can be used to deal with the score calculation,
Functional requirements:
(1) define the integer class and grade class, grade class derived from the integer class, including the constructor, destructor, display function, such as
(2) input/output: the extraction and flow convection insertion operator overloading, to all sorts of calculation and input/output points,
(3) computing functions: score, can be reduced, multiplication and division,
(4) reduction function: will score reduction for the minimalist scores,
(5) exception handling function: score denominator cannot be zero,
CodePudding user response:
There are a lot of this convenient video online.