yes u fixed it thanks but if i press S for example it still closes the app how can i stop it from closing?
did it worked putting another cin.get ty everyone :D
Try putting system("pause"); just one line above return 0; and let me know if that fixes the problem. Some compilers exit automatically without waiting for user input.