- Jul 15, 2001
- 6,899
- 63
- 91
Lets say a user enters in a bunch of characters like ab12ab12 and then hits enter. How do i check for the enter keystroke in a loop? I tried while ( cin.get() !='\n' ) but that is not doing it (it does not go on to the next operation.