Valid C ++ Clause 1, valid Clause 1
Regard C ++ as a Language Federation
This section is the first section of Objective C ++. It describes the features of C ++. In fact, C ++ has diverse features, which are different from java, java is a pure object-oriented language, and for C ++, object-oriented is only one of the main features.
C ++ is developed based on C. C ++ is compatible with C. C is a structured language, and its focus is on algorithms and data structures. Write C code, focusing on designing certain algorithm processes and getting output through input data.
The C ++ features can be divided into four aspects:
1. C: C ++ developed on the basis of C language.
2: Object-Oriented C ++: this refers to the inheritance, encapsulation, and polymorphism that we often talk about. We usually say that C ++ is object-oriented and refers to this.
3: Generic programming in Template C ++: C ++, which is another major feature of c ++ and avoids program redundancy, the redundancy here is not only the code written, but also the memory occupied by the program during compilation.
4: STL: This is a standard template library. It uses templates to implement many containers, iterators, and algorithms. using existing libraries can greatly reduce your workload. STL is the compiler.