windows 环境安装C++

# 进入网页进行下载
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/?tdsourcetag=s_pctim_aiomsg

 

 

点击下载,完成后解压到某个路径下,将bin路径添加到环境变量

 

 

#include <stdio.h>

int main()
{
   printf("Hello, World! \n");
   
   return 0;
}

创建.cpp文件,复制代码进去

 

 搞定。

 

posted @ 2022-11-10 11:11  黑山老道  阅读(392)  评论(0编辑  收藏  举报