求大神指导下面程序的错误,我的c++6.0每次都提示一个错误
#include <stdio.h>#include <math.h>
int main(void)
{
int a = 1 , b = 2 , c = 3;
double w , x1 , x2 ;
w = b*b - 4*a*c;
if ( w > 0 )
{
x1=( -b + sqrt(w)) / ( 2*a );
x2=( -b - sqrt(w)) / ( 2*a );
printf( " 两个解 , x1=%f , x2=%f\n, "x1,x2);
}
else if ( w == 0 )
{
x1= (-b) / ( 2*a );
x2=x1;
printf ( "唯一解, x1 = x2 = %f\n, " x1 );
}
else
{
printf( "无解\n," x1,x2);
}
return 0;
}