Columns of Related data

I honestly have no idea where to start with this. Any advice would be appreciated.
obviously it is supposed to be in C++ and x y and z are arrays.
I know how to write the results to a file I just included this for reference.
Calculate X from -2.0 to 2.0, in steps of 0.1 .
calculate y=x-squared for each value of x,
calculate z=x-cubed for each value of x.
Output results to a file "powers.txt".
Last edited on
closed account (jwkNwA7f)
For outputting the results to a file:
http://www.cplusplus.com/doc/tutorial/files/
Topic archived. No new replies allowed.