I'm not a C++ programmer, but it doesn't appear you have a library reference. The following code will compile, whether it produces the right result is another matter.
[highlight]#include "math.h"[/highlight]
float quad1(float a, float b, float c)
{
float d;
float e;
[highlight]d=sqrt(b*b-4*a*c);[/highlight]
e=(-b+d)/(2*a);
return e;
}
I did find out that there is a difference between sqrt and Sqrt. I have no idea if this is significant to your program. 8-)