How to use "C + + Primer" to learn C + +?

Source: Internet
Author: User

"C + + Primer" as a prestigious C + + Classic course, rich teaching-assisted content, carefully organized programming demonstrations, whether beginners, or middle and senior programmers to upgrade, are undoubtedly the first choice.

A good book can only be worth reading, but the "C + + Primer" this thick as a brick good book, many people after the purchase, all just simply read the previous chapters, and not be able to read the complete book carefully.

Laboratory building in order to enable us to better use of "C + + Primer" Learning C + +, launched an in-depth study of the "C + + Primer Fifth Edition" training camp to the task-driven mode of learning classic textbooks, providing exclusive online environment, by a mentor full guide to ask will answer, led you 7 weeks to complete Primer Fifth edition of the study, solid your C + + foundation. And the combination of personal experience and network resources for everyone to organize a number of suggestions, to share for everyone as a reference, I hope we can correctly through the "C + + Primer" Learning C + +. How to learn "C + + Primer".

1. "C + + Primer" This book must look at the beginning, read carefully do not jump, c++11 interspersed in the book every corner, if you jump directly to the back of the new standards you may see and return to see. And this classic book repeatedly see many times there will be a new harvest.
2. A line of the book on the code hand, knock, side to look at the effect, and then think why do this, what the effect is what, encounter do not understand, and then carefully in the book to find the answer, the book has a very detailed explanation. Just start knocking on the code will encounter a lot of grammatical errors, accumulate more can quickly correct over.
3. Do a good job of learning notes, the content of the book more, and most of the content does not guarantee that all are commonly used, so some forget will be faster, so do a quick memory of learning notes to see for themselves, can also be used as a tool to check the leakage. A practical reading guide from the Book of Knowledge

The fifth edition of "C + + Primer" As an example: thanks to the Netizen Lang Qing Water in the wonderful reply, question and answer link is: http://www.zhihu.com/question/32087709

Part1 is the first eight chapters, except 6.6, 6.7, to read through. In particular, the third chapter introduces vectors and strings, which is simply a beginner's gospel, and the two containers will be able to write some simple programs.

Part2 is basically the data structure and algorithm, if the basic reading is very easy.
9, Chapter 112 describes the container, and the 12.1 section of the smart pointer to read through. Use smart pointers and containers far away from segment fault. In the 10th chapter of the generic algorithm can be read slowly, after reading can write a high-forced functional style C + +. Section 12.2 tells how to use new and delete allocation space, subject as a novice, know this way of writing, write the program as far as possible with the container instead of the original array, especially the code is best not to have delete.

Part3 is a tough piece, the title is tools for Class Authors. As a "class user", some parts can be skipped for the first time.
Chapter 13 is important to read carefully. initialization, replication, assignment, and right reference are subtle and important parts of C + +, and other languages have little distinction between these concepts. This chapter should not only be intensive, but also fully mastered.
The operator overload of chapter 14 can be seen roughly for the first time, and 14.9 can be skipped for the first time.
The importance of OOP is self-evident in 15 chapters. If none of the previous concepts were, it would be more abstract to learn. There are a lot of popular and interesting articles on OOP online, so you can look at them together.
16 chapter on generic programming, the first reading 16.1, the most basic function template and class template on the line.

PART4 is more upscale, a lot of content for the first time even chew down, long don't forget again. The first reading recommended 18.2 section to read, the name space simple and easy to use the effect is good. Other content can be looked at the approximate, when to see. The tuple of verse 17.1 is an interesting thing to read. The regular expression of section 17.3 and the random number of section 17.4 may be useful or read. If you need to read and write to the file, you will be reading the raw I/O of the 17.5.2 section and the random I/O in section 17.5.3.

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.