Well, the previous article has introduced the syntax for process-oriented programming, followed by the final and most important part:
This is the last article in this series, which first introduces two descriptions:
Description One : C + + has four main parts: better C,adt,oo, and GP, as well as developing functional, Generative,meta programming and so on. Better C, only increases the class C subset of simple features such as function overloading, reference types, default parameters, and so on. ADT C + +, the entire program is composed of a planar concrete class (concrete Class) object, no inheritance, no polymorphism.
description Two : "C + + three people talk" saw the devil once pointed out that C + + programming paradigm can be divided into adt+pp,gp,oo three directions. 1, adt+pp adt:abstract data type; Abstract data type Pp:procedure programme; Process-oriented Programming paradigm ADT+PP is the process-oriented programming paradigm + abstract data type, which you can understand as the predecessor of C + +: C with class. 2, (Generic programming, generic programming) known as the programming thought of another revolution. is a parameterized (parameterization)-based programming technique designed to generalize and optimize useful algorithms or data structures as much as possible. 3, OO: Object-oriented programming.
The above ideas and Essentia C + + books on the Basic Agreement, also shows a problem: C + + is a multi-paradigm programming language, different programmers use him to write different paradigms of the program, no pros and cons. This series is the first of the above programming paradigm, you can call him C with class also can be called C+adt also can be called based on object, anyway, meaning is a. The basic grammatical composition is: process-oriented syntax (c syntax) + Flat class syntax (that is, only abstractions and encapsulation, no inheritance, and polymorphism).
digression: In fact, the simple C can be done based on the object, and there is no pain, but if you are like the class keyword and "." Operator brings the thrill, then this "C + + I want to use this" series describes the C with class is your good choice. In addition, there are many even use C to achieve generics, single-inheritance, polymorphic .... But I really do not recommend you to use, one too alternative, no human and material support, and secondly, after all, is a simulation of the implementation, not only limited functionality, the feeling of egg pain is not common people can get used to. Choosing a language for this paradigm is an orthodox choice, like Ruby in the bones of Oo, which is born of PP C and so on.
C + + I want to use this (vi)