#How to configure c environment variables in notepad?
Download and install Notepad, this step will not be repeated.
Install minGW (or copy the minGW folder, I personally feel it doesn’t matter whether you install it or not, it will not affect the use) to the C drive (other drives are also available, here we take the C drive as an example).
After completion, change the name of the minGW folder on the C drive to MinGW64.
Recommended: "notepad usage tutorial"
Add "C:\MinGW64\bin" to the system environment variable (C: \MinGW64 is the minGW you just copied or installed, there are a lot of things in it, don’t worry about it).
Check whether the compiler can be found by the system.
"Win key R", enter "cmd", press Enter to confirm, bring up the dos command window, enter: g -v, note that there is a space between g and -v, press Enter, you should be able to see The information as shown in the picture indicates that MinGW is ready to work. The red part indicates the mingw version used. I use mingw 5.3.0.
If it shows that g is not an internal command, or a similar prompt, you can restart and try again (it should not be a big problem after adding the environment variable correctly).
Let’s start with the key points:
Open notepad, press F5, or click "Run->Run" in the menu bar, the following dialog box will pop up, enter:
cmd /k cd /d "$(CURRENT_DIRECTORY)" & g++ "$(FILE_NAME)" -o "$(NAME_PART)" & "$(NAME_PART).exe"
Then click "Save".
After clicking "Save", the following dialog box will pop up to set the name and shortcut key of this command. For example: name enter "C/C compiler", shortcut (shortcut key ) can be set to what you are used to. Click "OK" and you're done.
Test run the following C code: (Save as "new 1.c")
#include <stdio.h> int main(void) { printf("Hello C World!\n"); return 0; }
Click the notepad menu bar "Run->C/C compiler", it works perfectly!
Test run the following C code: (save as "new 2.cpp")
#include <iostream> using namespace std; int main() { cout << "Hello C++ World!" << endl; return 0; }
Click the notepad menu bar "Run->C/C compiler", still runs perfectly!
The above is the detailed content of How to configure C environment variables in notepad. For more information, please follow other related articles on the PHP Chinese website!

Notepad was founded by the Frenchman Don Ho and has a distinct French imprint. 1.DonHo developed Notepad in 2003, aiming to replace Windows Notepad and support multiple programming languages. 2. Its official website and icon design reflect the French cultural characteristics. 3. Users can customize through plug-ins, such as NppFTP, but they need to pay attention to performance optimization, such as cleaning up plug-ins and using multi-document interfaces reasonably.

The steps for installing and initial use of Notepad are as follows: 1) Visit notepad-plus-plus.org to download the appropriate version; 2) Double-click the installation file and install it as prompts; 3) Start Notepad, create a new file and enter text; 4) Save the file and select the file type; 5) Write and run a simple Python program, such as print("Hello,Notepad !"). Through these steps, you can start programming with Notepad smoothly.

Notepad originatesfromFrance,developedbyDonHo.1)DonHostartedNotepad in2003tocreateapowerful,user-friendlytexteditor.2)France'stechcommunityandtheGNUGPLlicensefacilitatedglobalcontributionstoNotepad .3)TheFrenchinfluenceisreflectedinNotepad 'seleg

Notepad shouldbeinstalledonWindowsforitsproductivityfeatures.1)Visittheofficialwebsiteanddownloadtheappropriateversion.2)Runtheinstallerandfollowprompts,optionallyassociatingfiletypes.3)Customizesettingsandexplorepluginspost-installation.

Notepad is a text editor born in France and developed in 2003 by Vietnamese engineer Don Ho. Reasons for its popularity include: 1. Open source and free, 2. Efficient performance, 3. Rich features, such as multi-document interfaces and plug-in systems.

Notepad isapowerful,customizabletexteditoridealforcodersandwriters,offeringfeatureslikesyntaxhighlightingandpluginsupport.Toinstall:1)Downloadfromtheofficialwebsite,2)Runtheinstaller,choosingyourlanguageandinstallationoptions,3)Customizepost-install

Notepad usage is accompanied by implicit costs of time, learning curve, and productivity losses, but it can be maximized by leveraging plugins, customizing workflows, and combining other tools. Using Notepad may take more time to complete tasks manually, learning its plug-in system and customization functions takes time, and simplicity may lead to productivity loss, but by installing plug-ins such as NppFTP, customizing shortcut keys and interfaces, and combining GitBash and VisualStudioCode, development efficiency can be effectively improved.

Notepad is completely free and open source. 1. It is based on Windows, developed by DonHo, and supports multiple programming languages. 2. Provides syntax highlighting, code folding and other functions, which are lightweight and have low resource consumption. 3. Through macros and plug-ins such as NppExec, tasks can be automated and external commands can be executed. 4. It is recommended to update regularly, explore community resources, and consider other editors according to your needs.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Zend Studio 13.0.1
Powerful PHP integrated development environment
