if statement with break!
std::cout"Enter y for yes, n for n, proceed for p"<<endl;
else if (step=='n')
else if (step=='p')
//std::cout<<"You entered wrong character please try again;
It doesn't work for me, what is the problem, any help!
The above code doesn't work,
You need << after cout on line 2.
break; is only used to break out of loops or switch statements. If your code is not inside a loop or a switch it doesn't make sense to use break;.
The break statement can be used only in an iteration statement (loop) or a switch statement. I see neither of these in your code.
Okey thank your very much guys, It helps a lot.
Topic archived. No new replies allowed.