|
|
|||||
|
Get the Ebook
C Tutorial
Source Code
Function Reference
|
Keeping Your Program's Window OpenIt is a common problem for your program's output window to close before you can see the result of the program. The simplest solution is to require the program to wait for the user to input a final keypress before closing. The simplest solution is to add the following code at the end of your program, just before the return 0;:cin.get();This code will cause your compiler to wait until you press a key before closing the program's output window.
Want to become a C++ programmer? The Cprogramming.com ebook, Jumping into C++, will walk you through it, step-by-step. Get Jumping into C++ today!
Popular pages
Custom Search
|
||||