I need to make a program that takes one character as an input and instantly continues execution and the time limit for the user to enter that character is 2 or 3 seconds. please help me and if possible ppost an example. Thanks for your help.
SpyrosMet
-3
Light Poster
Recommended Answers
Jump to PostI need to make a program that takes one character as an input and instantly continues execution and the time limit for the user to enter that character is 2 or 3 seconds. please help me and if possible ppost an example. Thanks for your help.
Please read this. …
Jump to PostIt also depends on the compiler you are using. Only a few compilers can really do what you want.
Jump to PostDoes Dev-cpp have the functions
kbhit()
andgetch()
? If so, look up what they do. If not, I don't know if Dev can handle it.
Jump to PostYou can't. That's why I asked about
kbhit()
. With that function (or one similar -- google) it can be done. That is as long asgetch()
is identical to Borland and Microsoft. I heard it wasn't at one point.
All 13 Replies
dusktreader
137
Posting Whiz in Training
SpyrosMet
-3
Light Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
SpyrosMet
-3
Light Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
SpyrosMet
-3
Light Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Duoas
1,025
Postaholic
Featured Poster
SpyrosMet
-3
Light Poster
VilePlecenta
39
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
VilePlecenta
39
Junior Poster
Duoas
1,025
Postaholic
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.