I've searched Google and have not found a solution to my problem. Function is to take a parameter and do a calculation on it. Based on the initial conditions it is supposed to return true and the the value calculated via a reference parameter.

Basic code before all modification to get the value returned.

```
bool discr(double array2[3]){
double discr;
if(array2[0] != 0){
discr = pow(array2[1], 2) - 4*array2[0]*array2[2];
cout << "\nProbe: discr " << discr[0] << " " << discr[1];
return true;
}
else
return false;
}
```

Many thanks in advance.