Search:

Type: Posts; User: samwillc

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    2,669

    Yes, 'or' on those three conditions would have...

    Yes, 'or' on those three conditions would have always have been true whatever a user entered so the loop would always run. All three needed to be 'and'. I'm glad you got it sorted :)
  2. Replies
    15
    Views
    2,669

    Hi tsdad. I don't believe you actually...

    Hi tsdad.



    I don't believe you actually need an if statement in this situation, or a break. The loop itself handles the conditions because it will only exit once a correct option has been...
  3. Replies
    15
    Views
    2,669

    Hi Dave, I didn't copy the whole program, only...

    Hi Dave,

    I didn't copy the whole program, only the loop, so you're spot on, it doesn't do much on its own!

    Try this:



    # include<iostream>
    using namespace std;
  4. Replies
    15
    Views
    2,669

    I presume you are doing this: From one...

    I presume you are doing this:



    From one beginner to another, I would try looking at it this way:



    do
    {
Results 1 to 4 of 4