[gloworange]How do i tell the computer to exit the program when Q and enter is pressed. I just started writing in it and i want to know how. I have tried giving it a command line saying close screen and window and program when those to are pressed but nothing works. Help me please [/gloworange]

i wrote it in C++