ending program with escape..?

closed account (z0XLy60M)
Okay so in my program, in different menus, rather than putting an option to exit, what I wanna do is if the user enters escape the program should exit (0)

The escape can be taken in cin or getch or something...
Pls help
:)
closed account (3qX21hU5)
http://www.cplusplus.com/forum/general/74333/ This should help you
Topic archived. No new replies allowed.