本人编译的一个函数,求指教
#include<stdio.h>float det2(float,float,float,float);
float det3(float,float,float);
void showit(float);
int main()
{
float a11,a12,a13,a21,a22,a23,a31,a32,a33;
float x,y,z;
float total;
printf("Please enter the all parameter:");
scanf("%f %f %f %f %f %f %f %f %f",&a11,&a12,&a13,&a21,&a22,&a23,&a31,&a32,&a33);
x=det2(a22,a23,a32,a33);
y=det2(a12,a13,a32,a33);
z=det2(a12,a13,a22,a23);
total=det3(x,y,z);
showit(total);
return 0;
}
float det2(float a22,float a23,float a32,float a33)
{
float x;
x=a22*a33-a23*a32;
return (x);
}
float det2(float a12,float a13,float a32,float a33)
{
float y;
y=a12*a33-a13*a32;
return (y);
}
float det2(float a12,float a13,float a22,float a23)
{
float z;
z=a12*a23-a13*a22;
return (z);
}
float det3(float x,float y,float z,float a11,float a21,float a31)
{
float total;
total=a11*x-a21*y+a31*z;
return (total);
}
void showit(float total)
{
printf("The total value is %f",total);
}
我这样多次调用的det2函数存在什么问题