目的 Windows10 环境,下载编译器 gcc,用来编译 c/c++ 文件,后缀分别为 .c、.cpp。 直通车 直通车文章,感谢这位博主。 MinGW资源,解压后,将 bin 目录(绝对地址)添加到 Path 环境变量里。 编写 one.c: #include <stdio.h> int main() { printf("hello world!\n"