C + + (pen) 001.

Source: Internet
Author: User

1. Programming Paradigm

The programming paradigm refers to the basic style of computer programming, and C + + accommodates many degrees of paradigm, such as object-oriented programming, generic programming, and traditional procedural programming.

2. Compared to C

C + + On the basis of the language of the new addition of the following features:

A. Classes and objects, inheritance

B. Polymorphism, virtual functions, and Rtti

C. function overloading

D. Reference variables

E. Generic programming

F. Anomaly mechanisms

G. Namespaces

C + + inherits the tradition of efficient, concise, fast, and portable, new object-oriented programming features, and a generic programming feature. In learning C + + you need to master the knowledge of the basic knowledge, OOP ideas and generics programming.

3. Programming Principles

Computer languages deal with two concepts: data and algorithms. Data is the information to be used and processed in the program, and the algorithm is the method of processing the data. C language is to decompose large programs into small, manageable tasks, which are called structured programming, and thus appear object-oriented programming. Programming emphasizes algorithms, and object-oriented programming emphasizes data. class specifies what data is used to represent the object and some methods of processing it. The beginning of OOP programming is to write classes that describe objects, from lower-level organizations (classes) to advanced organizations (programs), called bottom-up programming. C + + has converged on the traditional procedural approach of OOP and generic programming, suggesting that C + + emphasizes practicality, not ideological approach.

Think about it, read more C + + knowledge is also good, when my notes. Uuuup

  

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.