Here is my program, there a error every time i run this program. But it don't stated what error is is. Here is my error list.
------ Build started: Project: w2, Configuration: Debug Win32 ------
Compiling...
e2.cpp
c:\documents and settings\administrator\my documents\visual studio 2008\projects\project1\w2\e2.cpp(29) : error C2064: term does not evaluate to a function taking 1 arguments
Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Project1\w2\Debug\BuildLog.htm"
w2 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Here my program
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int k;
float x,x2,a,b,c,d;
k=1;
while(k!=-99)
{
cout<<"Enter 3 coefficients, A, B, C ";
cin>>a>>b>>c;
if(c==0)
if(a==0)
if(b==0)
cout<<"All solution \n";
else
cout<<"No solution \n";
else
{
cout<<"One solution \n";
x=-b/a;
cout<<"x= "<<x<<endl;
}
else
d=(pow(b,2))-4(a*c);
if (b<=0)
cout<<"Complex Solution\n";
else if (a==0)
{
x=(-b + sqrt(b * b - 4 * a * c)) / (2 * a);
cout<<"One real solution, X= "<<x<<endl;
}
else
{
x=(-b + sqrt(b * b - 4 * a * c)) / (2 * a);
x2=(-b - sqrt(b * b - 4 * a * c)) / (2 * a);
cout<<"Two real solution, X1= "<<x<<" X2= "<<x2<<endl;
}
cout<<"To end enter -99 to contunies enter any number";
cin>>k;
}
return 0;
}