Im getting this error when i try to run this program . "92 error a function-definition is not allowed here before token " and on line 118 " error expected'}' at the end of input . I cant figure out what that means
tried removing those brackets but it actually gives more errors
thank you , now having error with line 110 , and 112 . undefined reference to regulaBill and premiumBill . i think there is a problem with how i called the functions.
You wrote the program but do not know how to pass the argument? interesting... Anyways, lets look at the first part
1 2
if (service == 'r' || service =='R')
regularBill();
if you call regularBill() you will get an error because your function at the top is defined as : void regularBill (string accountNumberP, char serviceP ,int minutesP,float billingAmountP) which takes 4 arguments. Also, you may want to incorporate a switch statement block instead of if/ else-if statements incase you want to expand your program later.