| | |
Key input
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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. Last edited by WaltP; Nov 24th, 2008 at 6:28 pm.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
![]() |
Similar Threads
- Stop a keyboard key input (Visual Basic 4 / 5 / 6)
- Trapping the Tab Key....... (C++)
- school project: simple C++ game (need help with keyboard input) (C++)
- overloaded input stream help (C++)
- how to get the last key pressed without stopping the programm ? (C)
- Getting Key Input (C++)
- need help with fstream input files (C++)
Other Threads in the C++ Forum
- Previous Thread: Simple C++ Class problem
- Next Thread: setting size of 2-D array at constructor issue
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets







). If you are developing GUI application, keyboard key access depends of selected GUI platform...