C语言题目之大数乘法。程序尽量用比较基础的方法。希望每一步都有比较详细通俗的讲解(像老师讲课的话语)。这个是用于做一个演讲。悬赏150分,急求大神帮助。(用C不用C++)
#include
#include
using namespace std;
float p,q;
void m(int a,int b,int c,float d)
{
p=(-b+sqrt(d))/(2*a);
q=(-b-sqrt(d))/(2*a);
cout<<"x1=<
}
void f(int a,int b,int c,float d)
{
p=-b/(2*a); cout<<"x1=x2="<
}
void j(int a,int b,int c,float d)
{
cout<<"无实根"<
int main()
{
int a,b,c;
float d;
cout<<"Input A B C"<
d=b*b-4.0*a*c;
if(d>0)
{
m(a,b,c,d);
}
else if(d==0)
{
f(a,b,c,d);
}
else
{
j(a,b,c,d);
}
cout<
}