To learn C++ you will first need a compiler.
For Windows, Visual Studio Community 2015 is free. Follow these steps:
For The Macboook download XCode from https://developer.apple.com/xcode/download/
The following links cover a few other C++ compilers:
After you have found and installed a compiler, you will be ready to write your first program.