If your OS is:
Linux. You already have everything. Make sure to install g++ if it is not already there.
OSX. You already have everything. It may come with g++ pre-installed. However, if it’s not the case, install Xcode or its Command Line Tools. This link may be helpful. Open the Terminal and you are good to go.
We have to install Cygwin – a Unix environment for Windows.
These instructions can help you install it together with the g++ compiler. When doing installation, make sure you chose to install gcc-g++ package.
Video tutorials for installing and using Cygwin on Windows:
For this class, I strongly discourage using Xcode or any other IDE. We need only a text editor and a terminal window.
If you are using Vim (and Vi) text editor: The editor does not come with a good default configuration. Please refer to this quick guide to make it suitable for editing code.