Let's suppose I'm in a while (1)
loop calculating something, would it be possible to quit the whole application by pressing a certain key?
It's a C console application without threads.
I'm pretty sure it's not possible, but I'm a newbie so hey. I can only imagine beeing forced to press a key by some function like _getch()
or similar. But then you have to wait until the user presses the key and the calculation cannot run meanwhile.