Search:

Type: Posts; User: rosemary

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    31
    Views
    3,860

    1.It's an online class. 2.I live 2 hours away...

    1.It's an online class.
    2.I live 2 hours away from the professor's office.
    3.I didn't realize I would have such a problem with this class until after the drop date.
    4.I'm out of ice cream and it...
  2. Replies
    31
    Views
    3,860

    Very good point. But my professor is notorious...

    Very good point. But my professor is notorious for NEVER emailing students back. So, I come here.
  3. Replies
    31
    Views
    3,860

    Matticus-I believe you are correct. I did not...

    Matticus-I believe you are correct. I did not understand the question, so I was trying to do something that was not possible. Thank you so much.

    whiteflags-Take a deep breath. This is my last...
  4. Replies
    31
    Views
    3,860

    I'm not sure of anything. That's why I'm here.

    I'm not sure of anything. That's why I'm here.
  5. Replies
    31
    Views
    3,860

    I know how to write the code with the function...

    I know how to write the code with the function after or before main(). Why I am asking for help is because my assignment asked us to rewrite the code with the swap function INSIDE main-
    "Now...
  6. Replies
    31
    Views
    3,860

    ok. now i'm here. it compiles, but my values for...

    ok. now i'm here. it compiles, but my values for x and y display as 0.
    #include <stdio.h>




    void swap(int &x, int &y);
    int main(void)
    {
    int first_num = 10;
  7. Replies
    31
    Views
    3,860

    ok. so i get the error "Id returned 1 exit...

    ok. so i get the error "Id returned 1 exit status." what does that mean? thanks.


    #include <stdio.h>




    void swap(int &x, int &y);
    int main(void)
  8. Replies
    31
    Views
    3,860

    What does it mean when it reads "invalid type of...

    What does it mean when it reads "invalid type of unary '*' (have 'int') ?


    #include <stdio.h>




    void swap(int* x, int* y);
    int main(void)
  9. Replies
    31
    Views
    3,860

    This is my beginning code- #include...

    This is my beginning code-


    #include <stdio.h>


    int main(void)
    {
    void swap(int x, int y);
  10. Replies
    31
    Views
    3,860

    Could you explain more?

    Could you explain more?
  11. Replies
    31
    Views
    3,860

    What does this mean to you- "Now modify your...

    What does this mean to you-
    "Now modify your program so that the swapping performed by the function will appear in the main program after calling the function." ?
  12. Replies
    31
    Views
    3,860

    Sorry, I meant I have another code that works. ...

    Sorry, I meant I have another code that works. The one I pasted is the one I was trying to make into a nested function, but obviously it is not possible. Thanks for your input.
  13. Replies
    31
    Views
    3,860

    I didn't think C allowed nested functions. ...

    I didn't think C allowed nested functions. That's why I was confused. I already have a code that works with the function after main. I will contact the professor and ask for a clarification. ...
  14. Replies
    31
    Views
    3,860

    any help would be appreciated.

    Hi all-
    Could someone please help me with this assignment? I have a swap code that works, but now I need to alter it so the swap function appears in the main function after I call the function. ...
  15. Thread: a dime off.

    by rosemary
    Replies
    19
    Views
    2,345

    while (cents > 30) { ++dQD3.quarters;...

    while (cents > 30)
    {
    ++dQD3.quarters;
    cents = cents - 25;
  16. Thread: a dime off.

    by rosemary
    Replies
    19
    Views
    2,345

    ok. i added the cents variable. thanks...

    ok. i added the cents variable. thanks laserlight! i know i still don't solve the problem laserlight mentioned about 3 dimes turning into 1 quarter instead of staying 3 dimes (and not losing that 5...
  17. Thread: a dime off.

    by rosemary
    Replies
    19
    Views
    2,345

    bummer!

    bummer!
  18. Thread: a dime off.

    by rosemary
    Replies
    19
    Views
    2,345

    thanks for the help everybody :cool:

    thanks for the help everybody :cool:
  19. Thread: a dime off.

    by rosemary
    Replies
    19
    Views
    2,345

    it says "use 3 simple variables". but, i think i...

    it says "use 3 simple variables".
    but, i think i got it.
    i should have been starting with the smallest coin instead.


    #include <stdio.h>


    struct dollarsQuartersDimes
    {
  20. Thread: a dime off.

    by rosemary
    Replies
    19
    Views
    2,345

    i am trying to change everything to pennies, and...

    i am trying to change everything to pennies, and then change it back.
  21. Thread: a dime off.

    by rosemary
    Replies
    19
    Views
    2,345

    my assignment was to use just the 3 variables i...

    my assignment was to use just the 3 variables i have already used.
  22. Thread: a dime off.

    by rosemary
    Replies
    19
    Views
    2,345

    ok. here's my changed code. #include...

    ok. here's my changed code.


    #include <stdio.h>


    struct dollarsQuartersDimes
    {
    int dollars,
    quarters,
  23. Thread: a dime off.

    by rosemary
    Replies
    19
    Views
    2,345

    wouldn't it be impossible to have 21 cents? so,...

    wouldn't it be impossible to have 21 cents? so, if it's above 20 cents, it has to be 30 cents, right?
  24. Thread: a dime off.

    by rosemary
    Replies
    19
    Views
    2,345

    can anyone help? thanks.

    can anyone help? thanks.
  25. Thread: a dime off.

    by rosemary
    Replies
    19
    Views
    2,345

    Like this? But it still does not give me correct...

    Like this? But it still does not give me correct change.


    #include <stdio.h>


    struct dollarsQuartersDimes
    {
    int dollars,
    quarters,
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4