More than a month ago, I received a letter from a netizen asking me to help him develop a program. I will not answer these questions directly. If you want to learn through the read program, there are too many readable programs and you don't care about the program I wrote.
I wrote back to him that he could make a version by himself. We will discuss his practice whether it is right or wrong. This is an effective communication. The questioner did not do it. He told me that this learning method can be used. No matter whether he is right or wrong or not, he has done his own work, and his own discussion points have come out. My answer was:
I have limited time. It is better to send me what you have done and raise a specific question. In the course of study, this type of communication is not called communication. (If you have a question or do not talk about your own opinions, you can directly ask someone to say, "You can make an answer and give me a clear explanation, it cannot play any major role.
He sent his own version. A task that can be completed in a loop, but the calculation in the loop body is incorrect. I modified the program for him as a reply. In view of his question "when the input value is large, the result is negative", I will give him some advice on the problem of "overflow. The reply says:
When the value is large, the result is negative. Please find out that the int type occupies 4 bytes, which means the maximum positive number of the first type can be 2 ^ 31-1, instead of representing an infinite number. If the calculated value exceeds the upper limit, data overflow occurs. Baidu "integer overflow", you can know.
He is very concerned with my "assignments". He has read a lot of books, including the English version of the C ++ programming language of the classic Bjarne stroustrup. It is necessary for beginners to visit the Expo, but there should be an open mind. Some things should be put aside for future solutions. Learning is not a linear process, but a series of iterations. The same problem is that you can look back at it with a different flavor. Apparently, he is a very persistent and serious person. He gave several ideas and asked, "What is the difference between int, long int, and long Int ?"
My reply is:
For these four cases, the difference between the literal "Short integer, integer, long integer, and long integer" lies in the range of the number. However, what is the difference depends on the platform.
Based on the program you have read to me, I suggest you do not have to worry about such details for the time being. It is the top priority to write programs to solve problems using the language-provided mechanism. You can use the "Review" strategy to solve the problem of language details. Many people, after the vigorous development, have ended the beginning of the first time.
If you are not a learner of this type, ignore this suggestion.
Soon afterwards, he again wrote a letter to another program. I always think there is a "SPAN" between the given program and the question ". If he uses debugging methods, he will be able to explain it as soon as he traces it. Because there were a lot of things at hand at that time, the reply I gave was:
I have completed the configuration at the end of the last few days. I decided not to fight for you in the code. If you send a similar question to the csdn Forum, someone will give you an idea quickly, much faster than waiting for me.
I often answer a lot of urgent questions or questions that require details in the attention program. I also need to give myself time.
Today, we can see the status of his hair on everyone. It can be seen that his approach to help has expanded a lot, and his research spirit remains. He was reminded that he could pay attention to efficiency, and he also introduced some discussions.
Everybody's status:
It took more than a week to write two questions (in fact, one question) and solved the problem with a very clumsy method. I have an initial impression on algorithms and a deeper understanding of vectors. The heratosney screening method has also become the first algorithm I have learned. I have gained a lot. C ++ is becoming increasingly difficult, but programming is becoming more and more interesting. I would like to thank all of you at csdn newbie Park, Baidu C ++, And the unsung Indian cool. Without you, I can't write this 44-line program. Without you, I may have abandoned it. Finally, I am an idiot who worships Alan Mathison Turing and John von norann with a sincere heart. If you don't have one, everything will be empty talk!
My comments:
I feel that you are playing a three-point test without a sense of ball. This can also be practiced, but it is obviously harder. By doing some water questions, we will accumulate some feelings and learn more easily, naturally, and efficiently. The required costs and resources will also be reduced, so we no longer need to use our will to constrain our learning. There may be something wrong, for your reference only.
He asked:
What do you think should you learn? This question is one of the exercises in an elementary textbook after class. I didn't think too much about it. I just wanted to try it. What kind of questions do you think you should choose as exercises? Please kindly advise! Thank you!
My reply:
One question, a week, is too inefficient. You can force yourself to do it with your will, but this feeling is not all good. Baidu's "SMART principles" are also suitable for determining the learning objectives (big goals and small goals for multiple choice, or you can perform exercises on the questions that you can just jump. Remember the current problem. One day, if you grow taller, it will be enough to start your heel. The evaluation criteria should not be the "Last Question of the primary textbook". It is difficult for you to solve the problem at such a high cost. It is amazing that you have been able to survive and solve the problem. This spirit will help you solve problems that cannot be solved by others in the future, this kind of spirit will not be lost. I think many of you cannot continue learning. I suggest you do better for yourself. Of course, you can do this and enjoy it. This is the best.
Repeated learning and spiraling rise are an important principle in learning theory, and efficiency and feelings are what I have drawn to emphasize from many consultations. I hope this student can stick to his own ideas and improve the way he really doesn't.
============================ Author he Lijian csdn blog column ==================== ====|=== category directories of it student growth guidance column columns (occasionally updated) ==||== C ++ online class column he Lijian Course Teaching Link (by course grade) ==|||== my book-"attacking the university against the normal energy passed to it students" ==|==== paving the runway for it cainiao to take off, A university that enjoys happiness and passion with its students ==== |