I am just starting out and i have read the tutorial but when I do a program the last output flashes on just as the window is closing. Is there some statement that pauses the program for a period of time before it ends?
This is a discussion on too quick to read within the C++ Programming forums, part of the General Programming Boards category; I am just starting out and i have read the tutorial but when I do a program the last output ...
I am just starting out and i have read the tutorial but when I do a program the last output flashes on just as the window is closing. Is there some statement that pauses the program for a period of time before it ends?
There are several ways to do this
Try cin.get()
I always use
system("PAUSE")
just put it before your return 0
just don't forget to include stdlib.h![]()
![]()