I redid it, but I still get this error.
TwoBodies.cpp: In function ‘void RK4_func(double, double, double, double, double, double, double, double, double, double, double, double)’:
TwoBodies.cpp:87: error: size of array ‘data’ has non-integral type ‘double’
line 87 is double data...