![]() |
| ||
| Key input I am looking for a command where i can press m and it pulls up my menu function. i feel retarded cause i tried to look it up but i dont know what i should look for exactly i know qbasic has a inkey command but i cant figure it out on c++ |
| ||
| Re: Key input Qbasic is not a general purpose platform-independent language, it's a concrete implementation of Basic language dialect. No keyboard notion per se in the C++ language. There are lots of keyboard access functions and libraries in C++ implementations. What's your C++ compiler? |
| ||
| Re: Key input visual c++ |
| ||
| Re: Key input Your best bet is to press "M<return>" and use fgets()to read the input and process the first character. It's portable and will work on ALL compilers. |
| ||
| Re: Key input Quote:
|
| All times are GMT -4. The time now is 4:00 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC