[Solved] Creating a clock program
You are calling kbhit() twice, only once is needed per loop. It does not return a char. You are calling getch() twice, you only need to once per loop. You should improve what flag means. Maybe change to StoppedFlag. while (1) { if (kbhit()) { char ch = getch(); if ((ch == ‘S’) || (ch … Read more