Professional Documents
Culture Documents
return p + (sum*0.2) ;
}
void output ()
{
cout << "\nyour meels that you Across with taxi is "
<<m <<" meels"<<endl ;
cout <<"your time with taxi is " <<t <<" m"<<endl ;
cout << "the price is " << price() <<" dolars";
} };
void main()
{ taxi a ;
a.input() ;
a.price() ;
a.output() ;
getch() ;}