The following tutorial column of notepad will introduce you to the method of compiling C/C with Notepad. I hope it will be helpful to friends in need!##1. Download MinGW and store it in the C drive (You can choose this by yourself). 2. Right-click "Computer" on the desktop - Properties - Advanced System Settings - Environment Variables, find the Path option, double-click to open it, and write ";C:\MinGW\bin" at the end. Pay attention to the semicolon. Separate it from the previous options (this is how it is written in Win7 system). If it is Win10, please see the picture below:
Then confirm all the way.
For Win7 users, if these things appear, it means the modification is successful:
cmd /k chdir /d $(CURRENT_DIRECTORY) & c++ $(NAME_PART).cpp -o $(NAME_PART) &$(NAME_PART).exe
The above is the detailed content of Teach you how to compile C/C++ using Notepad++. For more information, please follow other related articles on the PHP Chinese website!