kbhit function and its use?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ASIFSHEHZAD25
    New Member
    • Jan 2013
    • 5

    kbhit function and its use?

    I have used kbhit function in my programme and it works but if I want to get another value from key board what should i do?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    How about scanf()? Or getline()? or ...

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      Well back in the bad of days of DOS we used to use a combination of kbhit() and _getc().

      kbhit tells you when there is a character in the input buffer and if true then you use _getch() to retrieve the character without echoing it to the screen.

      Comment

      Working...