as you know, when using getch () in the application windows, they are waiting for you until you press the key,
how can I read the key without freezing the program, for example:
void main(){ char c; while(1){ printf("hello\n"); if (c=getch()) { . . . } }
thanks.
source share