If all you want to do is monitor for escape then try something like:
[EDIT]Code:DO use non-standard getch() for next user keystroke IF keystroke is ESC return ENDIF put keystroke back to console, ungetch(), so cin can read it later WHILE user has not hit ENTER cin.getline()
This don't work - read below...
gg