Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Kbhit() and control-C

  1. May 21, 2004 #1
    I have a programming running that waits for keyboard input. The problem is that when I press control-C to exit the program I get an error. I believe it is because the keyboard was pressed but the program is exiting before it can execute the code that is called when kbhit() is true. Any ideas.<br />
    <br />
  2. jcsd
  3. May 22, 2004 #2


    User Avatar
    Staff Emeritus

  4. May 22, 2004 #3

    thanks for the help.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Kbhit() and control-C
  1. Learning C/C++ (Replies: 5)

  2. Remote Control (Replies: 5)

  3. Network control (Replies: 6)