C + + language learning (i)--c++ introduction

Source: Internet
Author: User

C + + language Learning (i) Introduction to--c++ I. C + + INTRODUCTION

The C language is a structured and modular language that is suitable for small-scale programs. For complex problems, larger programs require a high degree of abstraction and modeling when the C language is not appropriate. In order to solve the software crisis, in the 1980s, the computer community proposed OOP (object oriented programming) thought, supporting object-oriented programming language came into being. Smalltalk was an object-oriented language that was invented at the time. In practice, because of the wide use of C language, C language is developed on the basis of object-oriented thinking based on C language, and C with Class (C language) is formed.
In 1982, Dr. Bjarne Stroustrup of Bell Labs at the US-at-T company introduced and expanded the object-oriented concept on the basis of C language, and invented a new programming language. In order to express the origin of the language and the C language, named C + +, and Dr. Bjarne Stroustrup is known as the father of C + + language.
C + + is the strengthening of the language, is based on the C language, and fully compatible with the C language features.
The tree structure of the development of computer language:

Second, C + + application fields

The C + + language is primarily used in the following areas:
A, System layer software development
B, server program development
C, stream play, network, distributed, cloud computing
D. Scientific calculation
Modern Software PRODUCT architecture diagram:

Iii. contents of the C + + language

C + + language is developed on the basis of C language and is fully compatible with C language. On the basis of C language, the C + + language mainly includes three parts: C + + for the basic grammar of the language, object-oriented support (inheritance, encapsulation, polymorphism), STL and so on.

Iv. c C Language Enhancement

C language is a structured language, focusing on algorithms and data structures. The design of the C program is primarily concerned with how the input (or environment) can be processed through a process that outputs (or implements the process (things) control). C + + is the first consideration is how to construct an object model, so that the constructed model can fit with the corresponding problem domain, by acquiring the state information of the object to get output or implementation process (things) control. So the biggest difference between C and C + + is that the idea of solving the problem is different, C is a process-oriented language, and C + + is an object-oriented language.
C + + is enhanced in six ways:
(1) The type check is more stringent.
(2) An object-oriented mechanism is added.
(3) added the mechanism of generic programming (Template).
(4) Added exception handling.
(5) Added operator overloading.
(6) Added Standard Template Library (STL).

C + + language learning (i)--c++ introduction

Related Article

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.