How do you return more than one value in a function? i.e. if you calculate several results and you want to reurn them...
double equation(double a = 0, double b = 0, double c = 0)
{
double sol1 = 0;
double sol2 = 0;
sol1 = (-b+sqrt((b*b)-4*a*c)/2*a;
sol2 = (-b-sqrt((b*b)-4*a*c)/2*a;
Return ????;
}
double equation(double a = 0, double b = 0, double c = 0)
{
double sol1 = 0;
double sol2 = 0;
sol1 = (-b+sqrt((b*b)-4*a*c)/2*a;
sol2 = (-b-sqrt((b*b)-4*a*c)/2*a;
Return ????;
}