Thread: what library for kbhit() function?

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    465

    what library for kbhit() function?

    i see others use it, and i include all the same librarys as they do, but it always gives me an 'implicit delcairation of function 'int kbhit()'
    I came up with a cool phrase to put down here, but i forgot it...

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    It's not a standard function, not all compilers support it. Which one are you using?

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    ah, yes, i forgot to mention that...

    Dev C++
    I came up with a cool phrase to put down here, but i forgot it...

  4. #4
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    This should work -

    Code:
    #include <conio_mingw.h>
    
    int main()
    {
    
          while(!kbhit())
              ;
          return 0;
    }

  5. #5
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    thanks, where do i find this information, because i know i will forget it later and need to look it up.
    I came up with a cool phrase to put down here, but i forgot it...

  6. #6
    Registered User Sekti's Avatar
    Join Date
    Feb 2002
    Posts
    163

    ...

    doesn't cprogramming.com have a functions list? I'm pretty sure it is in there man.
    +++
    ++
    + Sekti
    ++
    +++

  7. #7
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >doesn't cprogramming.com have a functions list?
    Yes, but it's far from complete. For a more thorough list of C functions take a look at www.rt.com/man. But beware, not all of them are standard.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  2. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  3. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM
  4. I need help with passing pointers in function calls
    By vien_mti in forum C Programming
    Replies: 3
    Last Post: 04-24-2002, 10:00 AM
  5. qt help
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 04-20-2002, 09:51 AM