C Language Experiment Report

Source: Internet
Author: User

(1) Experimental topic: Is not too fat (reinforced version) because did a weakened version of the brain a little thought, but I still do it for a long time to make it out.

Design ideas: According to the topic to enter three values, and then calculate the comparison, and then discuss the situation, and finally according to different results output different answers.

debugging process and problems encountered: However, in this seemingly simple operation I still do a long time, and then really can not find the mistake and carefully read the subject, only to find the original problem on the output you ... I have uppercase and I am lowercase, I know the truth of the mentality has collapsed.

Experience: The first thing to do in the future is to be optimistic about the problem.

(2) Experimental title: output Fahrenheit-Celsius temperature conversion table

Design idea: Use the FOR Loop statement to implement the table fill.

debugging process and encountered problems: After the submission has been displayed format error, but I should play the space also hit, or error, and then the teacher's help, corrected my error, the topic requires output Fahr,celsius is to occupy six characters.

Experience: Learn to output is after the percent sign plus a number to occupy a few characters.

(3) Experiment topic: Calculate train Running time

Design idea: Use the number of the topic to make time increase and decrease.

debugging process and problems encountered: In the time of the addition and subtraction of hours and minutes do not know to separate the calculation result has been unable to get the correct answer, and later, with the help of classmates, corrected the mistake.

Experience: When the overall calculation is not able to reach the results of the time to learn to separate to calculate.

C Language Experiment Report

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.