My first year of C + + learning--c++ The Changing learning methods

Source: Internet
Author: User
Tags logical operators

My first year of C + + learning--c++ The Changing learning methods

Two books for me to ascend:

For C + +, the first thing I want to talk about is "C + + Primer Plus" and "C + + Primer" These two books, a lot of people have discussed, compared to the two books, what is different, suitable for those who study and so on, and I have the "C + + Primer Plus" All read, read the "C + + Primer "two parts of the content, now, personally, want to tell me how I feel about these two books."

Start contacting C + +:

First of all, have to mention that before entering the university, completely did not touch the language of C + +, do not know what C + + is what kind of things. After coming to college, the school opened two major courses in freshman class, one is "Introduction to the Computer", the other is "Advanced Language Program Design" (that is, C + +), with the Tan Haoqiang book, opened the two or three section of C + + class, probably know what C + + is a thing, personal understanding, C + + is a programming language, A programming language that realizes what it wants to do, and so far the project is Win32 console, and it's been using Visual C + + 6.0 to compile the software. Of course, on the way to these two or three C + + classes, also adapted from high school to the transformation of the university, also know, the university, is actually such a thing, at that time, my C + + teacher classroom teaching to speak, personal feeling or no problem, but, found himself at this time have a certain interest in C + +, and, Not satisfied with the teacher's teaching, so, began to collect all kinds of C + + related information, find a variety of books, to find some C + + and employment issues such as the post look, and began not to listen to the teacher's class, their own self-study. In this way, "C + + Primer Plus" and "C + + Primer" (two basic books on grammar and Thought) (search for good books through the web, online shopping) to my hand, before I started to see "C + + Primer Plus", my C + + mastery is to write a simple int Main () {} and input and output statements, simple if-else statements, this is because of their interest, so even if the class is not much, I will also Tan Haoqiang the book before the one or two exercises to drill, each of the questions are done.

"C + + Primer Plus" The beginning of self-study:

  Then, I began to read the C + + Primer Plus, by the way, I read the book for six months or so before I finished, because a lot of time in freshman year and some miscellaneous seven disorderly eight things to do. "C + + Primer Plus", originally choose to read this book is because listen to a lot of netizens said "C + + Primer" is not very suitable for beginners (here refers to the total no contact with the novice C + +), and comparison of concise, and "C + + Primer Plus" on the more nagging, also quite suitable for beginners. Just started to contact the book, feeling a little excited, at the same time, a little pressure, thick, when to be able to read this book. In the first six chapters of this book, I took a fine reading and practice, because, at that time, all of these chapters were very novel, many fine points of knowledge in the Tan Haoqiang book is not seen, so the more you see the more energetic, also have the mind to read carefully, after reading a chapter, feeling that this book has a very precious place, it's exercise, The code is the only way to learn, the problem here is very suitable for beginners like me to knock, and, do the more do the more and more feel the problem. After completing the contents of the six chapters of C + + Primer Plus, it is time for us to take the exam (at the end of last semester). So, I then by the way mercilessly put the teacher to our topic (choose, read program questions, programming questions) did, after, because the winter vacation time is not long, and there are other things must do, so, Winter vacation is used in C + + time is not much, just a little review of the previous content, (bubble method, selection method, array) and the like these things familiar, summed up, did some topics, some or "C + + Primer Plus" above the topic, at this time, on the dynamic linked list, The dynamic linked list written in struct may have been the reason for such problems at that time, long after, on the dynamic linked list, also feel, originally, it, just such a thing, thought understand, the practice is also clear, the beginning of the next semester, in order to keep up with the teacher's teaching, not with school teaching completely disconnected, so, I decided to Tan Haoqiang the book, to understand its contents, not on the machine to do the problem, this time, I did not go to find the topic to do, and, but only spent five days or so time to read the content, probably know the C + + class, Oop thought is a thing, inheritance, derivation, encapsulation, Operator overloading these things also probably understand, at this time, understand these concepts, more and more feel write C + + program, sometimes, is a set of formula of live, is this is grammar. At that time, next semester, because of the class more things, the progress of self-study has been affected, so, then the learning methods are forced to change, each time the teacher assigned a knowledge point of the topic, I will not do, so, I smoked two hours or so to read the "C + + Primer Plus" on the relevant knowledge points, The great thing is, every time I read the relevant knowledge,, there is a sense of epiphany, and then directly on the machine will be assigned by the teacher to solve the job. So, at this time, "C + + Primer Plus" I was a draw, the relevant knowledge points to read, summed up, the next semester I learn C + + method is: The total reading a Tan Haoqiang C + +-> teacher to the relevant knowledge points-> I read "C + + Primer Plus" Related knowledge point-> to make a problem. [There are footprints on my blog].

Another stage of self-study:

By the June of this semester, analysis of the "C + + Primer Plus" self-study Progress, has learned: first chapter, Preliminary knowledge, chapter II, began to learn C + +, chapter III, processing data, fourth chapter, Composite type (array, string, structure), fifth chapter, loop and Relational expressions, sixth chapter , branching statements and logical operators, and [chapter tenth objects and classes, the 11th chapter, class] Part content, not self-study: Seventh chapter, Function C + + Programming module, eighth chapter, function probing (inline function, function overload, function template) Nineth chapter, memory model and namespace, as well as other containers, input and output chapters. So, at the time, I thought that the 78th chapter was the focus, is to learn the content before the class, so, will be the 78th chapter, fine reading, at the same time, also through the practice of mastering the contents of the seven or eight, the remaining, there are classes of residual content, and input output file content, but quickly read a little, not how to review, (At this time learning a little impetuous, want to solve the "C + + Primer Plus" book as soon as possible, and then, the contents of the container, for the basic operation, on the machine to practice three examples, it is not difficult to grasp, and this book, this part of the content also speak not much. The study of this feather is not finished, and then, during the summer vacation, in the completion of C + + big job "simple scoring system", with a lot of knowledge in this, and a small part of the container content, also practiced here, and then, they bought the "data Structure and algorithm analysis (c + + version)" (second edition), Electronic industry publishing house, Data structure and algorithm analysis (c + + Edition) (third edition) "People's post and telecommunications publishing house two data structure book self-study data structure, this way deepened the impression of the function template, because, these two books in almost all examples are useful to the functional templates.

The data structure of the vacation study:

Summer vacation, want to learn data structure, so, bought "data structure and algorithm analysis (c + +) (third edition)", in this book, a lot of use of the content of the Stl,vector, because at this time less contact (big homework began to add more contact), see dizziness dizzy, or not how to understand, Also looked at the previous episodes of Min video, look at the contents of the double linked list, at the same time, very skillfully, the teacher introduced me to a "data structure and algorithm analysis (c + +)" (second edition), the content of this book list is very good, so I followed it has been the content of this section to look down, but, to the contents of the tree, Again feel difficult, so I decisively turned to the previous "Data Structure and algorithm analysis (c + +) (third edition)", this time, this is good, the function template also less use, use, I will also see, so, so, summer vacation, with the help of Teacher Yan's video and these two books, self-study part of the data structure of the content , the content of the linked list is more familiar, to have learned other content, just understand, knock over the code, know the principle.

Self-study program to complement Foundation:

Next, because you don't want to learn the data structure so not on the machine, so find some big problem, but the remaining time do not want to big problem, so, decided to put a data structure, first self-study "C + + Primer", self-study "C + + Primer" thought a lot of things before, don't know should still spend time on the basis, By now, I have the answer that this book is worth looking at, these foundations, is worth mending, this time, is spent pretty value, see "C + + Primer", I see very smooth, very cool, this time, my Learning method is, read carefully, each chapter to underline their own fresh, more important than the grasp of solid knowledge, and write every chapter of learning Small (on my blog has footprints), this method, the "C + + Primer" The first major part of the solution. ("C + + Primer" is divided into five parts, the first part: The basic language, the second part, container and algorithm, the third part, class and data abstraction, fourth part, object-oriented programming and generic programming, Part V, advanced topics.)

Changes in Self-Study methods:

When you read the second part of the chapter nine to 11, the more you look, the more you feel, I need to get into practice and think about why I'm looking at this part of the content, and I think it's quite different from the last part of the story, and I thought, for reason 1, this book is about this part in a way that describes the function of each container, Reason 2, for the first part of the content I have a better foundation, look at the time naturally relaxed and happy, but also found a lot of new small knowledge, and the second part I do not have any basis, usually less use, the more natural to see the more boring, so I decided that this part of the learning method, I will start with the third chapter of the container probably can achieve the function, their advantages and disadvantages of the outline listed, and then, according to the outline, and then imitate some of the topics, they give themselves a big problem, with this chapter of the content of knowledge, do a small project out, write a manual, by the way can also be as a project experience. As for the third part of the book to the content of the five parts, estimated with one or two part of the content of the learning method is not very different, when the time to learn there on specific issues specific analysis. (or, in the winter holiday, can make up these three parts of the content.) )

A small self-study program for the Future:

"Data structure" of the study, recently, see the teacher out of the topic is quite good, if you can exemption, hope to apply to exemption, in the "C + + Primer" a book is not completed, the intention of the data structure of the study on a big semester to learn C + +, when it gives the topic, reading, practice, and, Now than the teacher progress a lot faster, this can not hurry, and so on "C + + Primer" completed, began to focus on the "data structure."

Comparison of two books:

Back to this "C + + Primer" and "C + + Primer Plus" feel it, before and above, seems to have mentioned a little bit, here to summarize:

1. Teaching Methods

"C + + Primer Plus" like to use concrete examples, step by step analysis, chapters in-depth, a little nagging to teach.

C + + Primer likes to list points of knowledge, just like dictionaries list words, and then sometimes give an example of a brief description.

2. Teaching Content

"C + + Primer Plus", knowledge points in addition to STL content, are relatively complete.

"C + + Primer" Now the fourth edition has added a lot of STL content, of course, the knowledge point is also covered relatively full.

3. Personal Referral

Personal feeling two books can be complementary, complete novice and like nagging teaching, or "C + + Primer Plus" A little better, and like to streamline, of course, "C + + Primer", two sometimes seem to give me a complementary feeling, if time is ample, can two books are read, of course, Do not forget the master of that sentence "Do not superstitious books, questions, teachers, replies, to superstition CPU, compiler, debugger, run results." Comrade Louden's words, "practice the Truth".

Summary of the memorandum:

Next, I will continue to write blog, (together with the role of supervision, two collation their own knowledge, three records retrospective effect,) continue to develop C + + (there may be a third to C #) route, do not waste the university time, refueling.

Related Article

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.