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

How to run notepad program

藏色散人
藏色散人Original
2019-11-04 09:44:038599browse

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

推荐:《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

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!

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