Can someone tell me how I can get a single character input from the keyboard, without needing to press enter? I want to get i/p from the arrow keys.
Can someone tell me how I can get a single character input from the keyboard, without needing to press enter? I want to get i/p from the arrow keys.
Which platform? There is no standard way.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
XP. Using Visual C++ Express, Win32 Console Application.
Oh you mean like the one in the FAQ?
http://faq.cprogramming.com/cgi-bin/...&id=1043284392
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Yes, just like that one. It wouldn't be a FAQ if no body asked it now would itOriginally Posted by Salem
But that's exactly why there is a FAQ, someone already asked. So check and see what was already asked.Yes, just like that one. It wouldn't be a FAQ if no body asked it now would it
Do you know how many C++ faqs there are on the web. If I'd had known which one the answer I was looking for I would have read it.
I'm greatful for the pointer to this one. Thanks Salem.