How to compile and run C++ with notepad
Editor to share with you how notepad compiles and runs cymbals. I hope you will get something after reading this article. Let's discuss it together.
How does notepad compile and run cymbals?
1. Download MinGW and store it on disk C (you can choose this one).
2. Right-click the desktop "computer"-Properties-Advanced system Settings-Environment variable, find the Path option, double-click to open it, and write "; C:\ MinGW\ bin" at the end of it. Note that it is separated from the previous options with a semicolon (this is how the Win7 system is written). For Win10, see the following figure:
And then make sure all the way.
3. Open cmd and type Gmail +-v (notice there is a space).
For Win10 users, if these things appear, the modification is successful:
For Win7 users, if these things appear, the modification is successful:
4. Open Notepad++, and press F5 to open the interface as shown in the figure:
5. Input
Cmd / k chdir / d $(CURRENT_DIRECTORY) & C++ $(NAME_PART). Cpp-o $(NAME_PART) & $(NAME_PART). Exe
Click Save, fill in Name casually (RunC++ is recommended), then determine a shortcut key (of course, you can find it in "run" in the menu bar), click OK, and then close the window.
6. Write a random program and press the shortcut key you just set. Is it ready to run?
After reading this article, I believe you have some understanding of "how notepad compiles and runs C++". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!