1, download MinGW, store it in C disk (this can be selected).
2, right click on the desktop "Computer" – Properties – Advanced system settings – Environment variables, find the path option, double-click to open, write at its end; C:\MinGW\bin ", note the semicolon to separate it from the previous option (this is the Win7 system), if it is Win10 see the following figure:
And then you can make sure.
3, open cmd, input g++-V (note that there is a space).
For WIN10 users, if these things happen, the modification succeeds:
For Win7 users, if these things happen, the modification succeeds:
4, open notepad++, press F5 Open as the diagram interface:
5, input
Cmd/k chdir/d $ (current_directory) & C + + $ (name_part). Cpp-o $ (Name_part) &$ (name_part). exe
Click Save, name casually fill (suggest fill in runc++), and then determine a shortcut key (of course, you can not be sure, the time can be from the menu bar "Run" found), click OK, and then turn off the window.
6, casually write a program, press just set the shortcut key, is not able to run the.