安装64位TDM
软件下载链接:https://download.youkuaiyun.com/download/fengweibo112/10971318
添加环境变量
编写代码及运行
程序编写完成后,我们在Notepad++界面下按下F5,在输入框中输入:
cmd /k gcc -o "$(CURRENT_DIRECTORY)\$(NAME_PART).exe" "$(FULL_CURRENT_PATH)" && CLS && "$(CURRENT_DIRECTORY)\$(NAME_PART).exe" & PAUSE & EXIT
#include "stdio.h"
int main(void)
{
int input;
printf("HELLO WORD\r\n");
scanf("%d",&input);
printf("input = %d\r\n",input);
system("pause");
return 0;
}