notepad怎么运行程序?
第一步、编写一个c程序
test.c
#include <stdio.h> int main(void) { printf("%s\n","start"); printf("%s\n","end"); getchar(); return 0; }
推荐:《notepad++使用教程》
第二步、配置gcc的环境变量
第三步、按F5,输入如下
cmd /k gcc -o $(CURRENT_DIRECTORY)\$(NAME_PART).exe "$(FULL_CURRENT_PATH)" && CLS && $(CURRENT_DIRECTORY)\$(NAME_PART).exe $(FULL_CURRENT_PATH) & PAUSE & EXIT
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!