Four Arithmetic program test

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.