Talk about the C + + language-software and programming

Source: Internet
Author: User

The C + + language is derived from the language, and there are several names in the early days, "C with Class", "New C" and so on. It can be seen as a more advanced language based on the development of the C language, more and more convenient for her to do than the C language. Nowadays, it is necessary to learn the C + + language especially when the software is getting bigger and more complex. The next step is to write a series of articles to take you to the wonderful world of C + + language programming.

First talk about what is software?

Software is simply a program and documentation, we use a language to tell the computer what to do--write a program for the computer to process, we have designed the program to write some descriptive documents for designers to read, reference. From small to large, we have no less contact with software products, but we did not pay attention.

Seeing this classic arcade game, it is estimated that many people can recall their childhood experience, it is part of a computer software.

What is programming and what is C + + programming?

Writing a program (called programming) is to use a carrier to tell the computer, asking her to follow our orders and give the results of the process of operation.

This picture is the earliest form of computer programming, the programmer to the input of the formula I need to print to the paper perforated printer, the computer read the paper, the hole is 0, where there is no hole is 1, such as the result of calculating 1+2, we can put arithmetic operations subtraction and 0~ 90 numbers are expressed in 4-bit binary numbers: 0000~1111 these 16 numbers. So the computer can tell from the pinhole paper that the programmer needs to calculate the 1+2, and she calls her own calculator (ALU) to calculate and output the result 3 to the printing paper.

With the progress of science and technology, computer processing ability is more and more strong, pinhole programming is too slow, in order to efficiency, people gradually invented a variety of advanced programming forms, assembly language invented part of the solution to this efficiency problem. Assembly language defines a number of key words to help people remember-mnemonics, which use everyday words to correspond to the 0000~1111 on the pinhole paper, such as the use of words add to denote the plus +, programmers only need to remember these meaningful keywords can be, the error rate is greatly reduced, The efficiency is increased.

The stronger the ability, the greater the responsibility to assume. With the rapid increase in the size of the program, assembly language is slowly powerless. Structured language, object-oriented language began to embark on the stage of history, C + + programming is to use a more abstract keyword to write programs, after a series of tricks like the process of generating 0101 of such commands, the computer to process the 0101 representative of the command, the last step of the process for half a century has hardly changed.

How do you juggle?

For example, we use the C + + keyword class to write a word:

Class A {}

You can use a series of tools in the diagram to generate a number of 0101 of commands, this command and half a century ago, the order of pinhole printing paper is not different, efficiency is greatly improved, is not great?

Why choose the C + + language?

The C + + language is necessary for the cultivation of object-oriented thinking habits, and she supports C programming, which is a feature of C and other high-level languages she has, and she has evolved to evolve more advanced features, including STL, for the use of yards.

This article is written here, and next I'll cover some of the terminology and common tools for C + + programming. If you want to learn more about programming knowledge sharing, please follow the public number: programmer Interaction Alliance or Coder_online, sweep the QR code below to follow


Talk about the C + + language-software and programming

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.