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 :)
Type: Posts; User: samwillc
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 :)
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...
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;
I presume you are doing this:
From one beginner to another, I would try looking at it this way:
do
{