c++ MinGW 运行

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sanjan/article/details/79591060

C++ MinGW 简单demo

  • 用 gcc -v 查看MinGW 版本
  • 将hello.cpp 转换为 hello.exe
  • 运行hell.exe

用 gcc -v 查看MinGW 版本

cmd 执行
gcc -v

将hello.cpp 转换为 hello.exe

cd C:\Users\Administrator\Desktop\c++
g++ hello.cpp -o hello (会生成hello.exe)

运行hell.exe

hello (执行hello.exe)

hello.cpp 代码

猜你喜欢

转载自blog.csdn.net/sanjan/article/details/79591060
今日推荐