_kbhit() not integer when trying to sleep thread

56 Views Asked by At

i'm trying to make a stopwatch pause by making the thread sleep until a key is pressed, but _kbhit() will not return an integer?

the error is displayed in the image below: enter image description here

i tried to a quick search but wasn't able to find a solution to my problem

0

There are 0 best solutions below