Solution:
As referenced over, Apple's Xcode is a free, full included IDE for local applications. Be that as it may, it's not hard to squeeze it into administration for starting C++ code on a Mac, and it incorporates a GUI debugger. Note that Xcode is planned explicitly for engineers to compose macOS, iOS, tvOS and watchOS applications in Swift or Objective-C. Thus, it's not generally utilized in industry or instruction as a C++ advancement framework. In those circumstances, the attention is on Linux and Java-based IDEs. In any case, Xcode is free, ground-breaking and ends up being incredibly helpful for the understudy with a Mac. All you need is a (free) AppleID and afterward you can download it from the Mac App Store found in macOS: Apple Menu > App Store. The most recent form as of this composing is 8.3.3 and is intended to work with macOS Sierra.
I will explain, how to introduce a C++ compiler on Macintosh. (Since C++ itself is a programming language). On the off chance that you need to arrange C++ code on your Macintosh, at that point you have to introduce Xcode which has the Crash compiler for C/C++. It is an IDE (Coordinated Improvement Condition) where you can compose, order, and run your projects. In the wake of introducing Xcode, you may even utilize a content manager to compose and the Terminal to arrange/run C++ programs. Xcode can be downloaded from the Application Store on your Macintosh. You can likewise basically introduce the xcode order line instruments on the off chance that you don't need the entire IDE. You can likewise introduce compilers utilizing famous macOS bundle directors like MacPorts and Homebrew.
Summary:
Introduce Xcode from Application Store.
At that point open it and make another task, there select new terminal application, use c++ in language inclination, and presto you're all set.
You can use code squares to incorporate your projects as well!!