Question About My Homework Pls Help Me İmmediately

This is a discussion on Question About My Homework Pls Help Me İmmediately within the C Programming forums, part of the General Programming Boards category; my point which i did not understand, is how i use function called fig_drops_min, where will i use this function ...

  1. #16
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    my point which i did not understand, is how i use function called fig_drops_min, where will i use this function ???

  2. #17
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    i know but i didnt understand how i write functions called get_rate_drop_factor and fig_drops_min
    Well a function can only return one number, so you will have to pass in variables by reference (IE with the & sign). something like:
    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 way when you return to main the values will have been set from inside the function.

  3. #18
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355
    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.
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

  4. #19
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    yeah but where will i use function called fig_drops_min
    Last edited by jennyyyy; 03-12-2008 at 06:14 PM.

  5. #20
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    can i use function fig_drops_min in the function called get_rate_drop_factor :S:S:S or not

  6. #21
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355
    From your so far postings... I have absolutely no idea!
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

  7. #22
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    can i use function fig_drops_min in the function called get_rate_drop_factor :S:S:S or not
    Yes you can call a function from inside another function. No problem there.

    As for what you are meant to do I havent got a clue either, lol

  8. #23
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    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.

  9. #24
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Wow, what a confusing topic.

  10. #25
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    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
    
    }
    Code:
    CHOICE FUNCTION
    
    PRINTF STATEMENTS OF THE CHOICES
    SCANF THE INPUT AND EXECUT THE CORRESPONDING 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 difficult

  11. #26
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    i have done my hmw thanks to help

  12. #27
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    Congrats

  13. #28
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    thanks

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Algorithm question
    By PJYelton in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2002, 09:52 AM
  2. Urgent - Help - Homework Question
    By Sway2 in forum C++ Programming
    Replies: 12
    Last Post: 10-04-2002, 01:35 PM
  3. I have a homework question?
    By correlcj in forum C++ Programming
    Replies: 4
    Last Post: 10-03-2002, 10:38 PM
  4. Pls Help Me In This Question!!!
    By Joanna in forum Windows Programming
    Replies: 1
    Last Post: 10-20-2001, 02:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21