C + + deep understanding of functions, virtual functions, single inheritance, multiple inheritance, pointers, references.

Source: Internet
Author: User

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.

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.