If you use cin.get(), getline, cin >>, or anything like that the loop will stop executing until the user types something. Which you use depends on whether you want the loop to continue with any key being hit or only the enter key or whether you want to use what the user input. There are also non-portable methods discussed in other threads just below this one.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.