高手帮忙看看这个 c语言程序 错在了哪里

来源:百度知道 编辑:UC知道 时间:2024/05/02 12:49:22
#include"stdio.h"
#define lo (e*l)
#define ER (eo/rc)
#define rc ((d-2*t)/2)
#define Aa (3.1416*(d/2)*(d/2))
#define Ac (3.1416*rc*rc)
#define AF ((Aa*fa)/(Ac*fc))
#define B (M1/M2)
main()
{
float d,t,l,fa,fc,M1,M2,yo,e,Nu,le,y1; int x;
printf("Please input the d,t,l,e:");
scanf("d=%ft=%fl=%fe=%f\n",&d,&t,&l,&e);
printf("Please input fa,fc:");
scanf("fa=%ffc=%f\n",&fa,&fc);
printf("Please input N,M1,M2:");
scanf("N=%fM1=%fM2=%f\n",&N,&M1,&M2);
*********************************************
printf("if the pillar is "zhou xin shou ya"please input the "x=1" ,and or "x=0"");
scanf("x=%d\n",&x);
*******************************************
float f1(void)
{
if(x)
le=lo;
else
le=(0.5+0.3*b+0.2*b*b)*lo;
y1=1-0.115*s

你太酷了……
1. 用了没定义的变量
2. 字符串里面的‘"’不用转义符‘\’
3. 函数居然插到main()实现
4. 函数结束也不添加个‘}’

1.没有定义N
2.函数没有参数(void 应该改int x),而且也没有打好括号。
3.因为函数定义的问题,没有参数,所以也出现了错误。
4. 貌似你在函数内定义函数。。。。。。很大的错误。。