cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
A function that takes information from t
A function that takes information from the user without them pressing enter
Aug 5, 2012 at 5:36pm UTC
AlitCandle
(175)
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 UTC
Zephilinox
(595)
You may be able to hack something together with getch()
Aug 5, 2012 at 6:01pm UTC
AlitCandle
(175)
Thanks.
Aug 5, 2012 at 6:04pm UTC
Zephilinox
(595)
no problem, what were you hoping to do with it anyway?
Topic archived. No new replies allowed.