#include <iostream.h>
#include <stdio.h>
#include <conio.h>

float get_time_start (int message)
{float t;
    if (message==1)
    cout<<"Enter Start hour:";
    else
    cout<<"Enter Start minute:";
    cin>>t;
    return(t);
    }

float get_time_end(int message)
{float t;
 if (message==1)
    cout<<"Enter End hour:";
    else
    cout<<"Enter End Minute:";
    cin>>t;
    return(t);

float determine_bill(float sh, float sm, float eh, float em, int tc)
{float min_consumed,charge,H_bill;
       min_consumed=(eh-sh)/60+(em-sm);
    if (sh>=7){
    if (eh<=19)
    if (min_consumed>60)
    charge=60*4+(min_consumed-60)*4*.85;
   else
    charge=min_consumed*4;
       }
   else
       { if (min_consumed>60)
       charge=60*2.80+(min_consumed-60)*2.80*.85;

   else
       charge=min_consumed*2.80;
       }

   if (tc == 1)

    charge=charge;
    H_bill=charge*1.1;
    return(H_bill);
      }

void main()
{float sh,sm,eh,em,bill;
   int type_of_call;

    clrscr();
    sh=get_time_start(1);
    sm=get_time_start(2);
    eh=get_time_end(1);
    em=get_time_end(2);

    cout>>"Please choose 1 or 2:";
    cout>>"[1] Assisted\n";
    cout>>"[2] Direct Dial\n";

    cout>>"Please Enter 1 or 2:";
    cin>>type_of_call;
    bill=determine_bill(sh,sm,eh,em,type_of_call);

    cout>>"Time Start       Time End        Total Charge\n";
    printf("%.f    %.f     %.f    %.f       %.2f\n",sh,sm,eh,em,bill);
    }
   getch();
}

pls help turbo c++ tells me at this line

float determine_bill(float sh, float sm, float eh, float em, int tc)

declaration syntax error?how can i solve this problem?

Where is the closing brace for the function get_time_end?

Nowhere. That's where.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.