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?
Printable View
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 :confused: :cool: