Thread: kbhit()

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    28

    kbhit()

    Could Someone Post the function definition of kbhit()? My conio.h file has the prototype, but no definition.
    ---Rainer
    Digital pimp, hard at work

  2. #2
    Of course it doesnt. The actual content will be found in a LIB. The code isnt public domain.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    28
    Either way, I get an "implicit definition" error or something like that when I try to use it like this:

    if (kbhit())
    break;

    I just thought it hadn't been defined
    ---Rainer
    Digital pimp, hard at work

  4. #4

  5. #5
    Registered User
    Join Date
    Aug 2003
    Posts
    28
    I know how to use kbhit, but I can't. I still think its my conio.h header file. I looked into it and there are all kinds of comments like
    /* Don't understand this part */
    or
    //not finished yet
    if its not too big, maybe one of you could attach your copy
    ---Rainer
    Digital pimp, hard at work

  6. #6
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    I just formatted and havent installed .NET yet, what compiler are you using? I think on non-VC++ compilers it might be something like _kbhit or something...

  7. #7
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    /* Don't understand this part */
    or
    //not finished yet
    That doesn't inspire much hope.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  8. #8
    Registered User
    Join Date
    Aug 2003
    Posts
    28
    Never mind now, I got a different version of Dev C++ that had a more *professional* conio.h and it worked. Thanks anyway
    ---Rainer
    Digital pimp, hard at work

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 11-30-2007, 09:46 AM
  2. kbhit() for enter key? not working
    By yahn in forum C++ Programming
    Replies: 4
    Last Post: 04-03-2006, 02:44 AM
  3. implicit declaration of int kbhit(...);
    By Blizzarddog in forum C++ Programming
    Replies: 14
    Last Post: 11-13-2003, 05:39 PM
  4. Pausing for input, with kbhit() still detecting keys
    By Da-Spit in forum C++ Programming
    Replies: 5
    Last Post: 05-23-2002, 05:04 AM
  5. need more help on kbhit()
    By lordvlaad() in forum C++ Programming
    Replies: 0
    Last Post: 04-20-2002, 02:07 AM