Due to the serious error in estimating the first job, the work handed in in Tuesday was an extremely incomplete procedure and could not be operated correctly. After two days of debugging, a number of bugs and algorithmic deficiencies have been modified. The following are the major changes:
1. Stack overflow caused by the crash: modified the structure of the array variables related to initialization, roughly calculate and limit the variables in the function of the bounds of the array, to solve the problem of stack overflow.
2. Generate the formula: The method used in this program is to calculate a seed according to the parameters, as the interval, and then sequentially generated, which can be easier to avoid the same calculation formula
(1) The seed selection at the beginning of the problem, the calculation of seed errors resulting in the often generated formula can not meet the quantity requirements.
(2) The generation of the operation of the same problem, the pattern has problems, will cause the number of formulas can not meet the requirements
3. Read the topic and calculate: After the infix expression is converted to the suffix expression, when the suffix expression value is computed, there is a problem with the pop-up operation of the stack, resulting in a problem with the computed value.
4. Printing format: Format when printing fractions, printing matching results when there is a problem with the output format of correct and wrong at the beginning
5. Assignment of the structure: due to the unfamiliar structure operation, the assignment error resulted in many errors related to the structure.
The re-submitted job is better than the first job