M
Mithil
Hello everyone,
I have written a code that goes through an infinite loop in the main
function and calls an other function and goes to sleep. In this
function I am awaiting for an input from the user, my program doesn't
wait for the users input when the sleep timer expires calling that
function again. Having a recursive function would blow up the stack as
it is an indefinite loop. Is there any other means of waiting for
users input and still make it an infinite loop which sleeps every few
minutes. Plz help me out I am really stuck at this situation.
Mithil
I have written a code that goes through an infinite loop in the main
function and calls an other function and goes to sleep. In this
function I am awaiting for an input from the user, my program doesn't
wait for the users input when the sleep timer expires calling that
function again. Having a recursive function would blow up the stack as
it is an indefinite loop. Is there any other means of waiting for
users input and still make it an infinite loop which sleeps every few
minutes. Plz help me out I am really stuck at this situation.
Mithil