Topic:
1. Avoid duplication of topics;
2. Customizable (quantity (printing mode));
3. The following parameters can be controlled: whether there is a multiplication method, whether there are brackets, the range of values, the addition and subtraction of negative numbers,
Division has no number, whether it supports fractions (true score, false score 、。。。 ), whether to support decimals
(exactly how many bits), each line interval in the print can be adjusted.
Design ideas:
1. Avoid duplication of topics: After each topic is stored, the newly generated topics are compared and the same topics are excluded;
2. Can be customized (quantity/printing): The main function is responsible for the quantity and printing method;
3. Control variable parameter: The parameter sets are composed of various parameters, and the questions are screened by the user's requirement.
Elementary school students ' arithmetic C + + programming design idea