001--Basic Knowledge preparation

Source: Internet
Author: User

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

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.