Hi Everyone,
I have been searching for this thing few days and have not found anything except using simple C such as KBHIT. For example, I'm using switch command of case: "A". In this switch case, I have a while loop of printing "YES" output. While it is printing "YES" output, I want to press a key to exit the loop and stop "YES" from printing out. Can anyone help me on this.
Thanks!
Regards, Sharril
That is just an example mate.
Yes, but it's a broken example.
Besides the RI/IR issue, it doesn't take care of the situation of a "key" (received character) before you enter that state, in which case you never get any "YES" message printed.
Programming is very much a question of being very careful about all the details.