By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,255 Members | 2,640 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,255 IT Pros & Developers. It's quick & easy.

How do I make a C++ program close before shutting down?

P: n/a
My program doesn't give me time to read it! I have tried writing [return 0;] at the end but it doesn't work, and most tutorials are outdated, since I am using the newest version.
Nov 26 '10 #1
Share this Question
Share on Google+
3 Replies

P: 29
Press Ctrl+F5 during debug

or add the following lines at the end before "return 0;":

char response;
cin >> response;
Nov 26 '10 #2

P: 1,059
The question is not clear enough to answer. What do you mean by

"close before shutting down"

What you want to shut down or what you want to close?
Nov 27 '10 #3

P: 1
Ok thanks that works.
I also found out that I could use cin.get();
Dec 2 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.