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
:)
Topic archived. No new replies allowed.