Thinking of C Programming:
Encounter a problem, first of all, if it is a specific instance, a specific number, it will be how a situation, and then slowly find the law, find the relationship between them, the most important thing is to think, the idea is really important, and then think, how to program, how to write code, after writing, and then bring into the instance to verify, And then make corrections and improvements.
In particular, pay attention to the small details, for example, today is wrong, for () after the direct addition of a semicolon, equivalent to an empty statement, so, has been executed.
At the same time, thinking to spread, for example, let input 0-100 in the integer between the number of 9, I think of only 9/19/29/39/49/59/69/79/89/99, only considering that the single digit is 9, never thought 10 bit is 9, such as 91/92/93/94/95/96/97 /98, so an error has occurred.
Take your time to summarize and think.
There's no talent to decide everything!
This article from "Sentiment" blog, reproduced please contact the author!
Five times after the operation of the sentiment