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()'
Printable View
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()'
It's not a standard function, not all compilers support it. Which one are you using?
ah, yes, i forgot to mention that...
Dev C++
This should work -
Code:#include <conio_mingw.h>
int main()
{
while(!kbhit())
;
return 0;
}
thanks, where do i find this information, because i know i will forget it later and need to look it up.
doesn't cprogramming.com have a functions list? I'm pretty sure it is in there man.
>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