A function that takes information from the user without them pressing enter

Aug 5, 2012 at 5:36pm
Is there a function similar to cin that takes a key the user presses and stores it before they press ENTER? This would be helpful for a text based game.
Aug 5, 2012 at 5:39pm
You may be able to hack something together with getch()
Aug 5, 2012 at 6:01pm
Thanks.
Aug 5, 2012 at 6:04pm
no problem, what were you hoping to do with it anyway?
Topic archived. No new replies allowed.