Thread: Question About My Homework Pls Help Me İmmediately

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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.

  2. #2
    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 ???

  3. #3
    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. #4
    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. #5
    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. #6
    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. #7
    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. #8
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    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. #9
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Wow, what a confusing topic.

  10. #10
    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. #11
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    i have done my hmw thanks to help

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

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

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, 10: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