too quick to read

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 ...

  1. #1
    Unregistered
    Guest

    Unhappy too quick to read

    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?

  2. #2
    Still A Registered User DISGUISED's Avatar
    Join Date
    Aug 2001
    Posts
    499
    There are several ways to do this

    Try cin.get()

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    208
    I always use

    system("PAUSE")

    just put it before your return 0

    just don't forget to include stdlib.h

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 03-10-2008, 12:57 PM
  2. "sorting news" assignment
    By prljavibluzer in forum C Programming
    Replies: 7
    Last Post: 02-06-2008, 06:45 AM
  3. How to read a file stream entirely into a vector?
    By jiapei100 in forum C++ Programming
    Replies: 4
    Last Post: 01-06-2008, 03:22 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  5. Replies: 7
    Last Post: 12-12-2001, 10:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21