Note range: Section 1.2
In section 1.1, the author raised a question and gave a solution using the idea of separation, governance, and refinement. I will repeat it here. Before learning a new thing. Starting with its idea, I suggest you do not need to start the computer before reading the second article. The advantage of doing so is that you can avoid many inexplicable stupid problems. I will try to prove this in my future notes.
In this section, the author puts forward another important thing. For the first time, I saw this method in the Great "the C programming language", which has benefited me a lot. The author's explanation here is: "It provides a good way to control the inevitable errors in a program," In my opinion. The benefits are far more than that. In the course of learning, this method makes us better understand the role of new things added each time. This benefit is well reflected in this section. In this design process, the author teaches us four things. The most basic thing.
1. Basic Concepts many people think that this book is not suitable for beginners in the true sense. In the second issue of programmer this year, we mentioned that before reading this book. You must have at least one degree of programming knowledge. I personally think this is not an absolute saying. As long as you read it carefully. What is an in-depth understanding of this part? For example, when talking about identifiers, the author puts forward two other names. Symbol variables and objects. Anyone with experience knows this. Variables are different from objects, so when we write such a sentence
Int;
Are we sure A is an integer variable? Or an int object? Of course, if we add something, we can judge it.
Int A = 10; // apparently, this is the usage of common variables
Int A (10) // This is almost a Class Object Method
In addition to the simple description in the introduction, we have not yet obtained more explanations about objects. We are not sure yet. But we can do this. Too demanding for beginners? Or yes, but it is absolutely necessary to develop this habit.
Second: the biggest achievement of the compiler is to understand using and. H Relationship. Many beginners discuss this. This is also the first drawback, they do not understand what they are using. The description at the bottom of the page tells us that this depends on the situation of the compiler. So sometimes this is correct. If you change the location, it will be wrong. Reading this section saves at least a lot of time for you to ask stupid questions. Next is the compiler's error checking function. Obviously, there are only two types. This tells you how to work hard when compilation errors occur.
Third: data types. The author tells us that the two types of data are built-in basic data types and extended basic data types. While reading this section. There are two questions that I am very puzzled. The first question is: bool is missing in our miserable undergraduate textbooks, and there is no extension at all. I threw this question to my professor. But his answer made me even more confused. He said these are new things (he refers to the 1998 standard. In the preface, I can't tell you about this (I have the power to kill myself at the end of the term ). I just want to remind you that it is 2004 now. My other question is why there is no array or pointer? This problem persists until I read section 2.1. I don't want to explain my understanding here. I just want to give a beginner a piece of advice. The first article is a bit difficult. We should learn to give our own questions and give reasonable answers when reading these things, or simply stay in your mind and you will feel amazing when you realize it... Well. I call it a sense of accomplishment.
Fourth: control statements. This one. I can't say anything new. Maybe I don't know anything about programming anymore. When can I ask a friend to talk about his feelings,