How to set the delim character in cin.ignore() to anything?

1
2
cin.ignore( INT_MAX, 'w' ) //Do not continue until w is pressed
cin.ignore( INT_MAX, '\n' ) //Do not continue until enter is pressed 


How would I get it to continue when any key is pressed? Like a system pause on a Windows OS.
cin.get()?
Last edited on
Topic archived. No new replies allowed.