Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compile and run C++ with notepad

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report