I have conio.c included in my file, but i get implicit declaration of int kbhit(...);
Can someone send me the Kbhit() function? Thanks.
Oh, i also tried it with conio.h and still got the same thing.
Printable View
I have conio.c included in my file, but i get implicit declaration of int kbhit(...);
Can someone send me the Kbhit() function? Thanks.
Oh, i also tried it with conio.h and still got the same thing.
Does your compiler support kbhit? If not you'll need to either fake it by using something your compiler does support, or eschew the functionality.
It supports it, as i have done it before the hardrive crashed. Then i get the newer version of the lib to find that KBHIT() isn't even defined.
Okay, you've used kbhit, Kbhit, and KBHIT all on the same thread. Are you aware that the function is called kbhit and C++ is case sensitive? Most likely it's something you're doing wrong, compiler vendors don't remove useful functions without mentioning it.
im using kbhit() in the code.
How do i know that its not defined?
Because i opened up the conio.c and conio.h files
What compiler do you use?
Dev C++ with MinGW GCC
>Dev C++ with MinGW GCC
Works fine for me, what version?
why does that matter?
I just what the code for the kbhit() fucntion!
Anyway, the version is:
2.0.0
You can't do that. The code in the header files is only declarations, no definitions of functions.
Try including <mingw_conio.h>
>2.0.0
...Bloodshed is up to version 5. I tested kbhit on 4.9.8.0 and it works just peachy. Maybe you should consider upgrading to a more recent version of this free, downloadable software. :rolleyes:
NO NO NO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I know Bloodsheds Dev C++ is free, and i use 4.9
The version of MinGW is 2.0.0
Ill try the Mingw_conio.h
Whoa there killer, simma down. He's just trying to help. I think you'll find that not too many people will be willing to help you if you've got that kind of an attitude.
Brendan
Prelude is female. Common misconception.Quote:
Whoa there killer, simma down. He's just trying to help. I think you'll find that not too many people will be willing to help you if you've got that kind of an attitude.
-Shifty eyes- Eep. Sorry bout that Prelude lol.
Brendan