Trying calculations from file

///
Last edited on
on line 110: avg is always 0. You need to find the average before you use it in the formula
///
Last edited on
Now the problem is that you calculate the average but not the sum deviations.

In other words: you need a loop for line 120. You can use a vector in order to store all num:

http://www.cplusplus.com/reference/vector/vector/?kw=vector
Topic archived. No new replies allowed.