search
HomeDevelopment ToolsnotepadTeach you how to compile C/C++ using Notepad++

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!

Teach you how to compile C/C++ using Notepad++

##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:


Teach you how to compile C/C++ using Notepad++
Teach you how to compile C/C++ using Notepad++ Then confirm all the way.

3. Open cmd and enter g -v (note that there is a space).

For Win10 users, if these things appear, it means the modification is successful:


Teach you how to compile C/C++ using Notepad++For Win7 users, if these things appear, it means the modification is successful:

4. Open Notepad and press F5 to open the interface as shown:

Teach you how to compile C/C++ using Notepad++

5. Enter

cmd /k chdir /d $(CURRENT_DIRECTORY) & c++ $(NAME_PART).cpp -o $(NAME_PART) &$(NAME_PART).exe

and click Save. Fill in the Name as you like (it is recommended to fill in RunC ), then determine a shortcut key yourself (of course, you can also be unsure, you can find it from "Run" in the menu bar), click OK, and then close the window.

6. Just write a program and press the shortcut key you just set. Will it run?

Teach you how to compile C/C++ using Notepad++

For more notepad related technical articles, please visit

notepad Column!

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!

Statement
This article is reproduced at:csdn. If there is any infringement, please contact admin@php.cn delete
What is notepad What software notepadWhat is notepad What software notepadMar 06, 2025 pm 12:21 PM

This article compares Notepad and Notepad , highlighting Notepad 's superior features for coding. Notepad offers syntax highlighting, code completion, and extensive plugin support, unlike the basic functionality of Notepad. Therefore, Notepad

Introduction to Notepad's functionsIntroduction to Notepad's functionsMar 06, 2025 pm 12:19 PM

Notepad is a free, open-source text and code editor offering syntax highlighting, auto-completion, macro recording, powerful search, and a plugin system. Its advantages over other editors include enhanced code readability, efficient search/replace

What is notepad? What is notepad for?What is notepad? What is notepad for?Mar 06, 2025 pm 12:17 PM

This article describes Notepad, a basic Windows text editor. It details its functions—text editing, saving, opening, and searching—and limitations. While usable for simple text tasks, its lack of syntax highlighting, code completion, and debugging

Notepad installation detailed tutorialNotepad installation detailed tutorialMar 06, 2025 pm 12:10 PM

This article explains that Notepad is pre-installed in Windows and requires no installation. It addresses common issues accessing or using Notepad, offering troubleshooting steps. It also details installing the separate, more advanced text editor,

Notepad Setting Chinese Notepad How to Setting ChineseNotepad Setting Chinese Notepad How to Setting ChineseMar 06, 2025 pm 12:18 PM

Notepad lacks built-in language settings. To use Chinese, users must change their operating system's language settings to Chinese (Simplified or Traditional), then restart their computer or Notepad . Notepad 's interface language reflects the

Notepad How to display data in json formatNotepad How to display data in json formatMar 06, 2025 pm 12:15 PM

This article explains how to improve JSON data readability in Notepad . It focuses on using Notepad 's syntax highlighting and suggests external JSON formatters and validators for reliable formatting and syntax checking, as Notepad lacks built-i

How to convert notepad to json notepad to json shortcut keyHow to convert notepad to json notepad to json shortcut keyMar 06, 2025 pm 12:16 PM

This article explains how to convert unstructured Notepad text to JSON format. It highlights the lack of a direct conversion method, emphasizing the need for manual structuring or scripting (Python, JavaScript) for automation. Spreadsheet software

Does not bring your notepad computer?Does not bring your notepad computer?Mar 06, 2025 pm 12:20 PM

This Q&A clarifies Notepad's presence on Windows computers. It confirms Notepad's near-universal pre-installation as a core Windows component, accessible via search or File Explorer, except in rare cases of highly customized or corrupted system

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download

Atom editor mac version download

The most popular open source editor