how to make it stop

Pages: 12
You forgot to include the <thread> header.
I included it but it's still:
main.cpp: In function ‘int main()’:
main.cpp:66:20: error: ‘_kbhit’ was not declared in this scope
if( _kbhit() ) sign = _getch();
^
main.cpp:66:38: error: ‘_getch’ was not declared in this scope
if( _kbhit() ) sign = _getch();
Search the error.
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/kbhit

_kbhit is defined in <conio.h>
So is _getch, I think.
Now it's all working but ofc I have another problem. When I don't include the part with stopping it, timewatch looks pretty, it's like in this nice rame, but when I include it it's just simple 00:00:00...
I hope you get what I mean..
Lines 60 to 63 is what you talkin about I think. Just replace it with the pretty style of the code.
Topic archived. No new replies allowed.
Pages: 12