Elementary school student's four arithmetic C/C ++ programming design ideas, four arithmetic Programming Design
Question:
1. Avoid repeated questions;
2. Customizable (quantity (print mode ));
3. The following parameters can be controlled: whether there is multiplication and division, whether there are Parentheses, the range of values, whether there are negative numbers,
Whether there is a remainder in the division, whether the score (true score, false score,...) is supported ,...) Whether decimal places are supported
(Precise to the number of digits), the interval of each row in the print can be adjusted.
Design Philosophy:
1. avoid repetition of questions: After storing each question, compare the newly generated questions to eliminate repeated questions;
2. Customizable (quantity/printing mode): The main function is responsible for the quantity and printing mode;
3. control variable parameters: a set of parameters is composed of various parameter variables, and each question is filtered out according to user requirements.