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