我已经按你的意思修改了,也运行出来了,希望对你有帮助,代码附带在下面:#include#includefloat t,x1,x2;void main(){void situ1(float a,float b,float c);void situ2(float a,float b,float c);void situ3();float x,a,b,c;scanf("%f%f%f",&a,&b,&c);if (a==0){x=-c/b;printf("x=%.2f\n",x);}else {t=b*b-4*a*c;...
|