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

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.
You may be able to hack something together with getch()
Thanks.
no problem, what were you hoping to do with it anyway?
Topic archived. No new replies allowed.