function skipping
May 26, 2013 at 12:51pm UTC
i have function that return values so how can i skip the first two functions and read the third function in main function
it's like this one-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
int main()
{
int index;
double claim_amount;
getDetail (details);
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;
}
how to read selectOption function by skipping the ones up to it
please give me help thank u
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 UTC
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 1:17pm UTC
no ideas??
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.
Topic archived. No new replies allowed.