1. Download mingw and decompress it to the root directory of drive C

2. Change environment variables

Computer — Properties — Environment Variables — Variable (PATH) Edit — New —

Copy and paste the bin location in mingw

2.5 Checking whether Environment Variables are installed successfully

Win+R key enter CMD and press Enter

Type g++ –version and press enter

If the following information is displayed (or similar), the installation is successful

 

3. Download and install Visual Studio Code

4. Download the necessary plug-ins!

5. Create a new file, add the suffix CPP, write a piece of code to test run, remember to save before runningTo consider

1. A C program written on one system can run on other systems with little or no modification, and if necessary, simply change a few items in the main program header file

2. Written in C language program, written content is stored in a text file, the file is called the source code file C programming in the source file into an executable program files, the compiler converts the source code into intermediate code, the linker to incorporate intermediate code and other code, generate an executable file, and file the middle has a variety of formats, Describes the most common form of converting source code to machine-language code and putting the result in an object code file. Although the object file contains the machine and source code, it cannot be run directly because the object file stores the source code translated by the compiler. This is not a complete program object code file missing startup code, object code is missing library functions.

3. Define the goal of the program design program write code compile run program test and debug program maintenance and modification program

4. The compiler converts source code into intermediate code

5. The linker merges intermediate code with other code to generate an executable file