C ++ primer (version 4th) book reviews

Source: Internet
Author: User

After about two months, I finally finished reading most of C ++ primer's content (the last chapter: not reading special tools and technologies ). After reading this book, I feel that I have the responsibility to put forward some irresponsible views on this book from my own perspective.

First, the author of this book is the architect of VC ++. Therefore, this book discusses many details from the compiler perspective. If you encounter problems in programming in the future, in this book, you may find the answer. I can't help but lament that the content of C ++ is so complex that it is not easy for the author to show them to readers in detail. In addition, the author also wrote a book "Deep Exploration of the C ++ object model", which gives an in-depth discussion of the underlying mechanism of C ++.

Second, I have to point out that this is not a "Getting Started book ". Because the book is very meticulous, the pace is very slow, and sometimes some important content is scattered into various chapters (such as class, STL Library ), therefore, it is difficult for you to compile basic C ++ programs (or C Programs with classes) by studying this book in a short time ). I was forced to learn C ++ for a period of time because I wanted to use opencv. I started to use this book. But after a few weeks, I couldn't stand the speed, in desperation, I switched to the book that Mr. Tan haoqiang had (the PPT that can be found online), and then I felt very good: I was able to write the C ++ program as a cat and a tiger! Although it seems that there were a lot of problems with the program at that time, I think that learning programming should be like this. First write the program and modify it if there are any problems.

Third, when carefully reading the book (including answers to exercises), the translator of the Chinese translation pointed out many mistakes in the book (20 times out of the book ), this lowers my score on this book. Because it is not the first version, it has already been released to version 4th, so many errors really should not be. (It may also be because the changes to each version are huge .) There is also a lot of accompanying code in this book, but it does not give a detailed description of the Code, which makes me sometimes a headache, I do not know how to use.

Fourth, I have already said that the book is about details. Should I not be able to read this book, but should I open it and find the answer? I don't think so, because I can't find it like this, it's better to find it online. However, if you have read it again, you will probably be able to find it easier. But sometimes, for some problems, I feel that it is not easy to find in the book. In general, I feel that this book is not suitable for quick reference manual.

Fifth, I think there are a few unreasonable points in the book: first, we should not use classes very early (when we do not have a complete lecture on how to define classes: in this way, the program cannot run. You downloaded the header file of the definition class, and you cannot understand it. The key to programming is to allow the program to run first. The definition and use of classes should be more concentrated. Second, there is an example in the book: text search. That example is too difficult. I think it should be a simple example.

All in all, if you are eager to learn C ++, do not use this book. Pick a 300-page book, such as accelerated C ++. If you already have some basics, you must read this book to consolidate your foundation and provide an overview of all the content of C ++.

These are the basic points of view. Just a few SIGHS: The content of C ++ is too much. It may be hard to learn. After learning a rough story, you can easily give up the "kangzhuang Avenue": robust, efficient programming, reasonable architecture programs, and study some amazing tricks: for example, an overload occurs between a template function and a non-template function. C ++ is profound and profound. As a result, these technical things can never be learned. Instead of encountering specific problems and using skills to solve them, it is better to construct programs, write some programs that dummies can understand.

Finally, I would like to thank all the netizens on the csdn forum. I will post some questions I don't understand in the book to the Forum, and most of them will receive help from netizens.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.