Hi all. On "cout << "x1 = " << x1= ((-b) - sqrt(D)/ (2*a)) << endl; cout << "x2 = " << x2= ((-b) + sqrt(D)/ (2*a)) << endl;}" lines i get errors:
invalid operands of types 'float' and '<unresolved overloaded function type>'....
How to fix them?
Thanks
By the way, this program cannot calculate correctly... Maybe you could see the problem. The main thing is that when i write, for example, a=1, b = -5, c=6, this program calculate x1= 4,5, x2 = 5,5, but x1 and x2 should be 2 and 3. What's the problem? :/