Requirements:
1. Avoid duplication of questions
2, can be customized (quantity/printing method)
3, can control the following parameters: whether there is a multiplication method, whether there are parentheses, the range of values, plus or minus negative numbers, Division has no number, whether to support fractions (true score false score), whether to support decimals (accurate to how many digits), the interval of each line in the printing.
Method of thinking:
Problem one: avoid duplication of topics
Srand (Time (NULL)) function;
Question two: customizable (Qty/print)
Quantity: N of the number of questions entered will be output in a for loop;
Printing method: The user's input number to select the printing method, 1 for a line of output three questions, 2 represents ... ;
Question three: can control: whether there is a multiplication method, whether the right parenthesis, the range of values, plus or minus negative numbers, Division has no number, whether to support the score (true and False score, 、、、)
Whether to support decimals (exact number of digits), adjust each line interval in print
In the election, there are no above-mentioned various numbers, the numbers indicate that there is no, the interval of each row and the number of the same.
Next, the specific content such as the article