Hence, there are two options to run a C++ program on Mac. Download and install from Apple Appstore. Download and install by using Command Line Tools and using any preferred IDE or Code Editor for writing C or C++ code.