Home > Development Tools > notepad > How to run notepad program

How to run notepad program

藏色散人
Release: 2019-11-04 09:44:03
Original
8674 people have browsed it

How to run notepad program

notepad怎么运行程序?

第一步、编写一个c程序

test.c

#include <stdio.h>
 
int main(void)
{
 
printf("%s\n","start");
 
printf("%s\n","end");
getchar();
return 0;
}
Copy after login

推荐:《notepad++使用教程

第二步、配置gcc的环境变量

How to run notepad program

第三步、按F5,输入如下

cmd /k gcc -o $(CURRENT_DIRECTORY)\$(NAME_PART).exe "$(FULL_CURRENT_PATH)" && CLS && $(CURRENT_DIRECTORY)\$(NAME_PART).exe $(FULL_CURRENT_PATH) & PAUSE & EXIT
Copy after login

How to run notepad program

The above is the detailed content of How to run notepad program. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template