Search:

Type: Posts; User: ShinobiRAGE

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    1,361

    No actually, it comes out 5 instead of 0.

    No actually, it comes out 5 instead of 0.
  2. Replies
    14
    Views
    1,361

    >> What about the case where neither if condition...

    >> What about the case where neither if condition is met (for example, if I input 5 and 5)?

    I did this, seems to work, I don't know if there is any way around it.


    int sub ( int x, int y )
    {...
  3. Replies
    14
    Views
    1,361

    Thanks guys, else if works, but I did it before...

    Thanks guys, else if works, but I did it before and it didn't work. I must have missed a semi colon before.
  4. Replies
    14
    Views
    1,361

    If, else in a function?

    So I am trying to do a simple subtraction problem where the larger number would go first so the difference can be a positive or zero, but I am stump. If I just remove the if and else with either x -...
  5. Replies
    5
    Views
    1,321

    Ok, sorry for the double post, but is there a way...

    Ok, sorry for the double post, but is there a way to terminate the program if the user gets the wrong answer.
  6. Replies
    5
    Views
    1,321

    I am not sure why, I guess I am a stupid newbie,...

    I am not sure why, I guess I am a stupid newbie, =]
    But I guess I wanted to do one without a variable, but I guess that that is impossible, thanks!
  7. Replies
    5
    Views
    1,321

    Input to an addition problem

    So I just started out with C++ and using Visual C++ Express 2008 and I am following the starter tutorials on the site and one the second lesson. I would rewrite the code and change it so I can make...
Results 1 to 7 of 7