May 26, 2013 at 3:23pm May 26, 2013 at 3:23pm UTC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
int main()
{
int index;
double claim_amount;
getDetail (details);
/* >*/ selectOption (details, claim_amount, index);
/* / */
/* | */ selectOption (details, claim_amount, index);
/* | */ index = searchCustomer_ByPolicyNum (details, "kokulan" );
/* \ */ claim_amount = customerClaim (details, index);
/* \*/
// \-selectOption (details, claim_amount, index);
customerCount (details);
totalCustomersIn_PolicyType (details, "M" );
claim_fileOutput (details, claim_amount, index);
system ("pause" );
return 0;
}
Last edited on May 26, 2013 at 3:24pm May 26, 2013 at 3:24pm UTC
May 26, 2013 at 6:33pm May 26, 2013 at 6:33pm UTC
ok but i have returned some values so i can't do it it says intialize the index, claim_amount is there any other ways
May 27, 2013 at 2:39pm May 27, 2013 at 2:39pm UTC
Your function selectOption () uses values returned from the functions that you want to skip. You'll need to redesign your program to get values that this function needs, or encapsulate the function calls withim the selectOption function.