slow down .exe for assignment

This is a discussion on slow down .exe for assignment within the C++ Programming forums, part of the General Programming Boards category; hi plz help if u can, i have made a programm in c++ for an assignment now that a have ...

  1. #1
    Unregistered
    Guest

    Unhappy slow down .exe for assignment

    hi plz help if u can,
    i have made a programm in c++ for an assignment now that a have finished it i have made it into a exe,
    but the problem is after all the inputs are in it displays the outputs and exits the program realy quick what can i do to make it display the outputs and exit after they have been seen ?????????????


    cheers

    andy

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Try using getchar() from the cstdio header file after the last print. That way the program requires the user to hit enter before the program terminates.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 13
    Last Post: 12-09-2008, 11:09 AM
  2. .exe size with MinGW
    By Stabbsy in forum C++ Programming
    Replies: 3
    Last Post: 11-16-2006, 06:07 AM
  3. slow game
    By lambs4 in forum Game Programming
    Replies: 2
    Last Post: 08-21-2003, 03:08 PM
  4. Solutions for slow performance?
    By Hunter2 in forum Game Programming
    Replies: 52
    Last Post: 08-24-2002, 11:04 AM
  5. Problem creating .exe files
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 03-22-2002, 02:25 PM

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