C ++ is a language federated read partition tive_c ++

Source: Internet
Author: User

C. In the end, C ++ is still based on C. Blocks, statements, pre-processors, built-in data types, arrays, pointers, and so on all come from C. In many cases, the C ++ solution to the problem is only a relatively advanced C solution, but when you work with C components in C ++, the efficient programming code reflects the limitations of the C language: no template, no exception, no reload.

Object-oriented C ++. This part is the requirement of C with classes: classes (including constructor and destructor), encapsulation, inheritance, polymorphism, virutal function (dynamic binding) and so on. This part is the most direct implementation of the classical code of object-oriented design in C ++.

Template C ++. This is the generic programming part of C ++ and also the majorityProgramThe least experienced member.

STL. STL is a template library. You can see the name, but it is a very special one. For containers, iterators,AlgorithmAnd Functional Object conventions have excellent close cooperation and coordination, but templates and libraries can also be built with other ideas.

 

The Code of C ++ efficiency varies depending on the situation, depending on which part of C ++ you use.

 

Feeling: this is not the first time I discovered that C ++ is inclusive. Previous understandings: C ++ has the efficiency of C, Java object-oriented, and its unique template. After seeing it here, our predecessors have indeed summarized it.

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.