my point which i did not understand, is how i use function called fig_drops_min, where will i use this function ???
my point which i did not understand, is how i use function called fig_drops_min, where will i use this function ???
Well a function can only return one number, so you will have to pass in variables by reference (IE with the & sign). something like:i know but i didnt understand how i write functions called get_rate_drop_factor and fig_drops_min
That way when you return to main the values will have been set from inside the function.Code:// heres your function void get_rate_drop_factor(float *a, float *b) { } // heres how you call it int main() { float a, b; get_rate_drop_factor(&a, &b); }
That's because you have no specification for the function. All you have is a big confusion in your head because you have to work with something that you have probably have no idea about.
A typical example of ...cheap programming practices.Code:... goto johny_walker_red_label; johny_walker_blue_label: exit(-149$); johny_walker_red_label : exit( -22$);
yeah but where will i use function called fig_drops_min
Last edited by jennyyyy; 03-12-2008 at 06:14 PM.
can i use function fig_drops_min in the function called get_rate_drop_factor :S:S:S or not
From your so far postings... I have absolutely no idea!
A typical example of ...cheap programming practices.Code:... goto johny_walker_red_label; johny_walker_blue_label: exit(-149$); johny_walker_red_label : exit( -22$);
Yes you can call a function from inside another function. No problem there.can i use function fig_drops_min in the function called get_rate_drop_factor :S:S:S or not
As for what you are meant to do I havent got a clue either, lol
As to how to do the problems, the magic word is "units". For instance, #1 requires drops/min. So you need to take drops/ml times ml/hr times hr/min and there you go.
Me thinks that someone didn't pay attention at all in class and last minute squabbling is taking rise. Typical.
Start off by creating a choice function that the main calls
Code:int main (void) { CHOICE FUNCTION }I think your program should go something like that, of course after you have finished with a calculating function, call the choice function again. Etc. This isn't too difficultCode:CHOICE FUNCTION PRINTF STATEMENTS OF THE CHOICES SCANF THE INPUT AND EXECUT THE CORRESPONDING FUNCTION
i have done my hmw thanks to help
thanks