C++ Setup
Required Software
Windows 11 Professional Edition or MacBook Pro.
Instructions
Windows users follow these instructions:
- Download and install Visual Studio Code for Windows 10/11. See https://code.visualstudio.com/download.
- Download and install MinGW. See https://code.visualstudio.com/docs/cpp/config-mingw. Follow steps up to and including Check your MinGW Installation. Do not do any of the additional steps.
- Open Visual Studio Code and click the Extensions icon in the left hand panel.
- Type C/C++ in the search box.
- Install the Microsoft C/C++ extension that includes IntelliSense. This should be the first Microsoft C/C++ extension listed.
- From the menu open File > Preferences > Settings.
- In the Search box type "c_cpp default cpp".
- In the
C_Cpp > Default: Cpp Standarddrop down box selectc++20.
Mac users follow these instructions:
- Download and install Visual Studio Code for Mac. See https://code.visualstudio.com/download.
- The Apple Clang compiler is probably already installed on your Mac. To verify, run:
clang++ --version. - The command will respond with the version of Clang you are using. Make sure the version is 17 or higher. If your version is lower than 17, then go to the next step.
- If Clang is not found or if the version is not correct, then install Xcode command line tools:
- Open a Terminal.
- Run:
xcode-select --install - A dialog box will appear. Click the Install button.
- After the installation is complete run:
clang++ --version - The version will be displayed, e.g.
Apple clang version 17.0.0
- Open Visual Studio Code and click the Extensions icon in the left hand panel.
- Type "C/C++" in the search box.
- Install the Microsoft C/C++ extension that includes IntelliSense. This should be the first Microsoft C/C++ extension listed.
- From the menu open File > Preferences > Settings.
- In the Search box type "c_cpp default cpp".
- In the
C_Cpp > Default: Cpp Standarddrop down box selectc++20.
Courses and Class Files
This setup page is used for the following course:
Courses
- Introduction to C++ Programming.
- All students should download the following class files: