2018 on the IEC computer high-level language (C) job 1th time Job

Source: Internet
Author: User

I. 1 after a few weeks of study, talk about their experience.

Through a few weeks of study, I deeply felt that C language is a very rigorous and requires me to be very careful and careful completion of a subject, a character of negligence may lead to the entire program failure, or even the collapse of the compiler, these weeks of learning, let me get rid of the absent-minded of the small problems, I don't want to be so hairy. Secondly, my typing speed is very slow, through a few weeks of study, let my typing speed small progress, knock simple code is more handy than before, but I think this is still a long time I should continue to upgrade their own project. Learn C language, to be willing to take the time to prepare, serious treatment, more practice, more thinking, more summary, read more people have written procedures, and gradually summed up their own a "routine", we should ensure that there is a certain amount of time every day a certain quality of study into the C language, accumulated, I believe that our understanding of C language will certainly be able to a higher level.

Second, study and work encountered problems and solve the process.

1. Program cannot run

Solution: Check the compilation for errors, whether to forget to write ";", whether it is not saved.

2. Once the same code as the classmate, his can run normally, but I always show a compilation error.

Solution: Finally found that in the compilation process to switch the input method, resulting in unrecognized, and finally re-enter the solution.

3. Tapping the code is sometimes more irritable.

Solution: Flatten your mind and relax yourself as a casual way.

Three. PTA Operation

#include <stdio.h>

int main ()

{
int D;
scanf ("%d", &d);
if ((d >= 1) && (d <= 5))
{
D = d+2;
printf ("%d", d);
}else if (d>5 && d<=6)
{
D = 1;
printf ("%d", d);
}else if (d=7)
{
D= (d+2)%7;
printf ("%d", d);
}
return 0;
} ideas using if else the day after tomorrow is today plus two days

2018 on the IEC computer high-level language (C) job 1th time Job

Related Article

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.