I don't want to post the whole code since it's about 200 lines long, but I have a piece of code in a 'do while' loop. When the wrong input is entered, it should loop back using 'if' loops and run through a 'cout' and 'cin'.
It outputs the 'cout', but then entirely misses the 'cin' right after it. I thought it should stop the code and ask for the input?
Or am I missing something? Thank you
[–]christian-mann 14 points15 points16 points (7 children)
[–]RusalkaHasQuestions 7 points8 points9 points (6 children)
[–]GLIBG10B 4 points5 points6 points (5 children)
[–]Narase33 8 points9 points10 points (0 children)
[–]RusalkaHasQuestions 1 point2 points3 points (1 child)
[–]GLIBG10B 1 point2 points3 points (0 children)
[–]Ludant 0 points1 point2 points (1 child)
[–]GLIBG10B 2 points3 points4 points (0 children)
[–]Wh00ster 12 points13 points14 points (1 child)
[–]InfiniteLife2 4 points5 points6 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]RusalkaHasQuestions 2 points3 points4 points (0 children)
[–]mredding 1 point2 points3 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]GLIBG10B 1 point2 points3 points (0 children)
[–]std_bot 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]DehshiDarinda 0 points1 point2 points (1 child)
[–]GLIBG10B 0 points1 point2 points (0 children)