A brief introduction to the process of C + + program writing

Source: Internet
Author: User

Learn C + + programming (related C + + programming-basic knowledge ) and all programming languages every time you write a program from writing to the end, you go through the following steps:
1. Write programs in C + + language
A program written in a high-level language is called a "source program"? C + + 's source program is a. cpp suffix (CPP is the abbreviation for C plus plus)?
2. Compiling the source program
In order for a computer to execute a high-level language source program, it must first translate the source program into a binary form of "object program" using a software called "Compiler (Complier)" (also known as a compiler or compilation system).
is the compilation compiled in the source program files? The target program generally takes. obj or. o as a suffix (an abbreviation for object)? The purpose of compiling is to check the source program for lexical checking and grammar checking. All the contents of the file are checked at compile-time, and all compilation error messages are displayed after compilation is complete. There are two kinds of error message in general compiling system, one is error, one is warning (warning).
3. Connect the target file
After correcting all the errors and compiling them all, get one or more target files? The system-provided "connector program (linker)" is used to connect all the target programs of a program with the library files of the system and other information provided by the system, resulting in an executable binary file. Its suffix is. exe, which can be executed directly?
4. Running the program
Run the resulting executable binary (. exe file) to get the results?
5. Analysis of running results

If the result of the operation is incorrect, should you check the program or algorithm for problems?

To learn more programming language Tutorials Please login e mentor Web.

A brief introduction to the process of C + + program writing

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.