# C++環境設定 ## 1.VSCODE安裝 ## 2.安裝mingw64 https://drive.google.com/file/d/1OVHKpgJB-Uqvbm7TLBlhwjtZc6Z0HCG8/view ## 3.將mingw64移入C槽 ## 4.打開C:/mingw64/bin 將他加入到編輯系統環境變數 加入Path ## 5.打開 cmd 輸入 g++ --version 會顯示 ``` PS C:\Users\Phoexnix> g++ --version g++.exe (x86_64-win32-seh-rev0, Built by MinGW-W64 project) 8.1.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ``` ## 6.打開vscode 安裝C/C++擴充模組 ## 7.Ctrl+shift+P 選edit ui 設定編譯器路徑 C:\mingw64\bin\g++.exe IntelliSense 模式 windows-gcc-x64 ## 8.創建檔案 .cpp ## 9.執行檔案後跑出 .exe 直接執行 or .\test.exe ## PS .cs 一定要建立專案 .cpp 可以直接執行 轉成exe檔
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up