Download mingw and install it. It is a set of useful tools (these tools will be included in the $/bin directory ($ indicates the installation path you selected )).
Environment Settings: for our users, it is best to use a simple and convenient tool. Therefore, we need to set up the environment so that we can use mingw.
For setting, we only need to add the $/bin path to the PATH variable in the environment variable, so that our GCD compilation environment can be used together.
For example, if my installation path is D: \ CB \ codeblocks \ mingw \ bin, add this path to the path.
However, we also need to use the standard library and header file provided by mingw for C ++. Therefore, we need to set the system search path,
Environment variable name environment variable value
Mingw $ ($ indicates the installation path you selected, for example, D: \ CB \ codeblocks \ mingw, and modify it by yourself)
LibrarY_path % mingw %/lib
Run cmd to enter the CPP path and enter g ++ hello. cpp.
There will be one more a.exe file on the table. Enter command a to run and print it;
About the G ++ command, Baidu.