int main()
{
int distance,rate,time;
cout<<"Give me The Distance , Rate , Time and put a zero for the one you do not know"<<endl;
cout<<"What is the distance"<<endl;
cin>>distance;
cout<<"What is the rate(miles)"<<endl;
cin>>rate;
cout<<"What is the time"<<endl;
cin>>time;
if (distance=0)
{
cout<<d(rate,time);
}
else if (rate=0)
{
cout<<r(distance,time);
}
else if (time=0)
{
cout<<t(distance,rate);
}
why are you taking int distance,rate,time; though your function argument is in form of float..make them float...
you wrote distance=0 it's an assignment you need comparison..
so, it will be like distance==0.