Hello people, I was just wondering if anybody could tell me how to shut down a program when it ends or when the user signals that they want to finish, I get how to let the user signal the end of a program but I don't have the commands to quit the program, any help would be greatly appreciated thanks.
the mind is like a parachute it only functions properly when correctly packed and Falling with high velocity from a great height and the correct strings are pulled.



LinkBack URL
About LinkBacks




, I understand how to end the program, that is not a problem, I am only new to C++ and I understand that when I return whatever then the program is finished, the while loop keeps it going until the user signals the end by pressing 'n' or 'N', I assumed exit(0); was a way to shut the program down afterwards so I put a nested for loop with no code in it just to create a short delay before the program shuts down, if anybody could let me know a bit of code to shut the program down that would be great.