Automatic closing

This is a discussion on Automatic closing within the C++ Programming forums, part of the General Programming Boards category; Whenever i make a program, it always closes the command prompt directly after its done, so you dont get to ...

  1. #1
    Motor head pre-programmer
    Join Date
    Aug 2004
    Posts
    8

    Automatic closing

    Whenever i make a program, it always closes the command prompt directly after its done, so you dont get to read whatever it says unless you start the program from a command prompt. Like if i just double click the .exe file it will execute but once its done, the window just closes. How do i prevent that?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,830
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,088
    Try reading this FAQ which points you to this FAQ which has several possible solutions.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 06:59 PM
  2. why automatic variables are assigned with garbage values
    By srinivasg in forum C Programming
    Replies: 1
    Last Post: 11-08-2005, 07:14 AM
  3. automatic variables
    By FOOTOO in forum C Programming
    Replies: 5
    Last Post: 03-08-2005, 06:30 PM
  4. Automatic vs. Static Duration
    By JMB in forum C++ Programming
    Replies: 7
    Last Post: 10-14-2002, 08:16 PM
  5. Automatic Time in C++Builder ??
    By Gugge in forum Windows Programming
    Replies: 0
    Last Post: 06-18-2002, 01:58 PM

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