Hi! When i try to see how work the ready programms from book, it is compile, run, and closes window right away. How stopped prog after it finished to see and analyse all? Thanks a lot. I have Vista, Dev C++ 4.9.9.2
Shoh
0
Newbie Poster
Recommended Answers
Jump to PostAt the end of your example before the end of the return 0; put std::cin.get();
This will have the program wait for keyboard input from you before it is terminated.
So for example you have your Example.cpp file like this:
int main() { //blah blah …
All 2 Replies
BigTito89
23
Newbie Poster
Narue
commented:
Props for not suggesting getch, system("PAUSE"), or some other equally horrible solution.
+18
Shoh
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.