How can I read keyboard buffer?

  • Thread starter Thread starter Larry
  • Start date Start date
Hi my friends.
How can I read keyboard buffer by C++ ?


In a console app :

Standard C functions :

- getch() retreives one char from the buffer
- scanf() answers all other needs
- kbhit() is also interesting

C++ object:

- cin() would be the C++ version of scanf but I haven't used it in ages


In a Windows app :

Tell us what you want to do. Windows basically handles the keyboard buffer
and depending on what you're trying to acheive there are different
approaches.

Alex.
 
Back
Top