C++ Compilers Installation

Each student should install a C++ compiler on your local computer. Depending on the operating systems, students should download and install different compilers.

For Windows OS users, install Visual Studio 2022 community.

For Mac OS users, install Xcode (any version).

Official compiler – Visual Studio 2022

There are subtle differences between different compilers when it comes to compiling C++ code. Some code will compile with one compiler but not another one. To avoid the discrepancy between compilers, we will use “Visual Studio 2022” as the “official” compiler to grade homework and all course-related materials. 

Mac OS is not compatible with Visual Studio 2022 Community edition. For Mac users, to make sure your code work with the official compiler, double check the code with a Windows computer installed with Visual Studio 2022. You can find Windows desktops available in PIC lab or UCLA libraries.