Home >Development Tools >notepad >How to configure notepad c environment

How to configure notepad c environment

藏色散人
藏色散人Original
2019-11-02 10:52:553919browse

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"

How to configure notepad c environment

Open Run in the menu bar, click Run, or press F5. The settings dialog box pops up.

How to configure notepad c environment

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.

How to configure notepad c environment

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;
}

How to configure notepad c environment

Then click compile c and run c in sequence, and the final test passes. Congratulations to everyone who can program using this compiler.

How to configure notepad c environment

How to configure notepad c environment

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn