A slightly expanded version of Zach's example code. This version has an array of planet objects (which for now only has the moon, sun and earth) and uses a first order euler approximation to track their movement over time. It also writes the planet data to a .txt file in csv format.
Distance between earth and sun was in wrong units, changed step size.
Changed the code so that it reads from a data text file instead of hardcoding the data into the code, and split it up into main.cpp and main.h instead of putting it all in one file.