查半天,大佬帮我看看错哪了
#include <stdio.h>
float daycar(td,d){
return money(td,d);
}
float money(t,d){
float money;
if(d<=3)
money=13;
return money;
else{
if(t>=23&&t<=5)
money=(d-3)*2.3*1.2+13;
else {
money=(d-3)*2.3+13;
}
return money;
}
float afternooncar(tn,d){
return money(tn,d);
}
int main()
{
int td=8;
int tn=18;
int d=12;
printf("小明每天打车费用%f",daycar(td,d)+afternooncar(tn,d));
return 0;
}