How can I read keyboard buffer?

  • Thread starter Thread starter Larry
  • Start date Start date
L

Larry

Hi my friends.
How can I read keyboard buffer by C++ ?

Best regards,

Larry
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top