"C ++ Primer" reading note 1 (reproduced)

xiaoxiao2021-03-06  102

Scope of notes: The introduction of the first one and the 1.1 festival

Because of the previous reading habits, I held a despise attitude towards this book. Self-righteous thinking is just a similar nonsense similar to the opening. It turns out that I am wrong. Not in the contents of the four pages. The author pointed out a few wrong points before reading this book,

First: The understanding of OOP, I have to point out one of the unique features of OOP in most undergraduate textbooks in China, so that many people (including me) think that writing Class is entered. OOP's door, this book is clearly pointed out that the data is packaged is only the characteristics of the object. Is the result of ADT, which is an object based on object based, there is an Object Based, and there is no inheritance mechanism and Dynamic Binding (dynamic binding).

Second: awareness of C . The authors explicitly point out that C is a variety of design methods. And we are more about learning him as an OOP language, understanding C as a class-class C, and a serious problem that the idea of ​​this mistake is that we have a C to learn C Make us use C things during the application. For example, Class. I / O stream, but our thoughts are still c, which makes us difficult to accept OOP and other design methods; this makes me more deeper truthfulness to think about learning C , not necessarily learning C.

Third: awareness of program habits. The author in the 1.1 section made a problem. Instead of starting with many textbooks that start with "Hello World". In fact, I have always opposed the habit of learning a language, just like this book, from thinking, in the face of any problems, in the attitude of an engineering, here the author puts forward the summary and the solving thought. For beginners who have not yet developed a bad habit, this benefits are not anger. Reprinted from http://blog.9cbs.net/owl2008/

转载请注明原文地址:https://www.9cbs.com/read-104957.html

New Post(0)