My program exits immediatly.

When i build and execute my program and it does what its supposed to do it just shuts down. What do i need to add to my code to make it not shut down right away
Last edited on
ask for input before you exit your main loop

int wait;

cin >> wait;

you have to enter a char before you exit the program there is a better function for this but can't come up with it at the moment.





Topic archived. No new replies allowed.