compiler error.. Short code 8 lines.

My error is cannot convert double* to double for argument one to double standard_deviation(double int).. not sure what it is?
1
2
3
4
5
6
7
8
double standard_deviation( double array [ ], int num_value_give)
{
    double total = 0, average = 0, numerator = 0;
    int num_values_given = 6;
    for(int b = 1; b < num_values_given; b++)
    {
        total += array[b];
    }

Last edited on
it means that somewhere in your code you call this function and try to pass it a scalar object of type double instead of an array of doubles or a pointer to a double object.
I found it thank you..
Topic archived. No new replies allowed.