Learning C + + requires mastery of the knowledge, OOP knowledge, and generic programming knowledge.
The computer language processes two concepts-data and algorithms. The data is the information that the program uses and processes, and the algorithm is the method that the program uses. Procedural languages, such as C, emphasize the algorithmic aspect of programming, that is, it first determines what the computer should do, and then uses the programming language to implement these operations. OOP emphasizes the data, which, unlike procedural programming, attempts to satisfy the language by trying to make the language meet the requirements of the problem, and the idea is to design a data format that corresponds to the intrinsic nature of the problem.
In C + +, a class is a specification that describes the new data format, which is a data structure constructed from this specification. Typically, a class specifies what data can be used to represent an object and what operations can be performed on that data.
OOP programming methods first design classes, which accurately represent what the program is dealing with.
generic: Refers to creating code that is independent of the type. Use a generic function to implement the same operation for all types of data .
Note: Some compilers need to include specific tags when compiling c++11 code, such as g++ require-std=c++0x:g++-std=c++0x main.cpp when compiling
001--Basic Knowledge preparation