Home >Development Tools >notepad >How to configure notepad c environment
How to configure the c environment in notepad?
We won’t talk much about the installation of the software here. Students who have not installed it please download and install it yourself.
We first open the Notepad software and enter the main interface.
Recommended: "notepad usage tutorial"
Open Run in the menu bar, click Run, or press F5. The settings dialog box pops up.
Fill in the correct information in the pop-up settings dialog box: cmd /k gcc -o "D:\study\$(NAME_PART).exe" "$(FULL_CURRENT_PATH) " & PAUSE & EXIT then name it as compile c, and set the shortcut keys yourself.
The same second one: cmd /k "D:\study\$(NAME_PART)" & PAUSE & EXIT name is run c, and the shortcut key is set by yourself. After setting, just close the dialog box.
Then simply test the program in the software to see if it passes. The specific program is:
#include <stdio.h> int main(void) { int i1=1,i2=2; int sum=i1+i2; printf("%d\n",sum); return 0; }
Then click compile c and run c in sequence, and the final test passes. Congratulations to everyone who can program using this compiler.
Notes
D:\study is the program output location, which needs to be set by yourself.
The above is the detailed content of How to configure notepad c environment. For more information, please follow other related articles on the PHP Chinese website!