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