I know how to get the window to close when you press a letter and then enter but is it possable to have it close when you press escape?
I know how to get the window to close when you press a letter and then enter but is it possable to have it close when you press escape?
#include <stdio.h>
#include <conio.h>
Here's a horrible little bit of code I threw together that may give you an idea. You may be particularly interested in the number that appears when you press esc.Code:int main() { char c; while (c!='q') { c=getch(); printf ("%i",c); } return 0; }
q exits
Demonographic rhinology is not the only possible outcome, but why take the chance