Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
kbhit function and its use?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
ASIFSHEHZAD25
New Member
Join Date:
Jan 2013
Posts:
5
#1
kbhit function and its use?
Mar 6 '13, 06:12 PM
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
Join Date:
Mar 2007
Posts:
9214
#2
Mar 6 '13, 08:19 PM
How about scanf()? Or getline()? or ...
Comment
Post
Cancel
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#3
Mar 7 '13, 09:34 AM
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
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment