Recently began to write the Project Server section, again contact with C + + has some more in-depth experience. Record, lest forget ~ before learning C + + poor Good is by rote, remember C + + usage, C + + characteristics, and then go to use. Not fundamentally understood, resulting in a few years without C + +, has been completely forgotten, and then also spend a long time to remember, use. So to really learn C + +, we must fundamentally understand, so that it will not be forgotten, and use will be more heart should also launch.
1, defined some definitions
About pointers, just beginning to learn pointers, always some vague impression, do not want to know exactly what is the rote usage. Just know that the pointer can point to an object, like an identity.
I've been thinking about it lately, and have done something specific by studying the compiled file. We know that all programs will eventually be interpreted as compiled into machine code, and that our computers will become binary files, which are shaped like 010101001. about how the CPU executes these binaries, which is related to some hardware knowledge, I do not know, there is a chance to find a single-chip microcomputer research, but we only know that the final program will become a command to execute. The simple generalization of those instructions is to take some action (such as add, subtract, and so on) into one memory and then write it to an amount of memory. The procedure is simply to load a bunch of binary instructions and some data into memory (all a bunch of binary values), and then the CPU executes those instructions, modifying the memory (including requesting new memory, freeing old memory, in-memory data operations, or assigning values).
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
C + + deep understanding of functions, virtual functions, single inheritance, multiple inheritance, pointers, references.