this code compiles, but when i run the program, it outputs "floating point exception". to my knowledge this happens when you divide by 0, but ive worked it out on paper, and i am not dividing by 0.
its the method implementation for a class. if you need it i can post the .h and main
float LinearEquation::Intersection(LinearEquation & linearequation , float & x , float & y)
{
int D = 0;
int E = 0;
int F = 0;
linearequation.GetCoefficients(D ,E ,F);
y = ((D * C) - (A * F))/((A * E) - (D * B));
x = SolveX(y);
return x,y;
}