cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
My program exits immediatly.
My program exits immediatly.
Mar 17, 2012 at 9:28pm UTC
hulibarri
(46)
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
Mar 17, 2012 at 9:30pm UTC
Moschops
(7244)
Second thread on the page.
http://www.cplusplus.com/forum/beginner/1988/
Last edited on
Mar 17, 2012 at 9:30pm UTC
Mar 18, 2012 at 2:21am UTC
jorz
(55)
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.