Test one:. Test whether the problem is repeated:
I use the Srand function, which guarantees that the random number generated is different, so that the problem is not repeated. So don't test it.
Test two: The input system of the test is particularly small, but the number of the output of the problem is relatively large, you will find that the topic is duplicated.
Test three: Look at the input binary, if the input is a decimal, the result will be
Abnormal input will be found, the program will not be able to
Test four: Look at the number of topics, if you enter decimals.
Test Five: If you enter too many columns, it will cause arithmetic arithmetic to go to the next line.
In a comprehensive view, if you do not press the normal range of the input, the title is problematic. Also because I write the program is not mature enough, do not support decimals, fractions, resulting in problems.
Summary: If the normal integer arithmetic to the question, the program will not appear the above error.
(1)
(2)
(3)
Four Arithmetic program test