|
楼主 |
发表于 2015-10-29 16:15:40
|
显示全部楼层
#include<stdio.h>
#include<math.h>
int main()
{double a,b,c,disc,x1,x2,p,q;
scanf("%1f%1f%1f",&a,&b,&c);
disc=b*b-4*a*c;
p=-b/(2.0*a);
q=sprt(disc)/(2.0*a);
x1=p+q;x2=p-q;
scanf("x1=%7.2f\nx2=%7.2f\n",x1,x2);
return 0;
}
--------------------Configuration: qiugen - Win32 Debug--------------------
Linking...
qiugen.obj : error LNK2001: unresolved external symbol _sprt
Debug/qiugen.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
qiugen.exe - 2 error(s), 0 warning(s)
|
|