Thread: Keeping the console window open

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    34

    Keeping the console window open

    Hello,

    I'm programming in "C", and using the
    Dev.C++ v4 compiler. On set up I've
    unchecked the box:"Compile for win32 (no console").

    For new projects I choose console apps.

    Question? How do I keep the console window
    open?

    Thank you,

    Adock.

  2. #2
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    Do u mean how to avoid the window quickly closing after you app runs? There are several ways, some are suggested at the FAQ too. You can use ways such as:

    getch();

    or

    system( "PAUSE" );


  3. #3
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    And of course info like this would NEVER be hidden away in the FAQ ...and if you need it more specific than that how about Pausing the screen - Cprogramming.com FAQ
    Last edited by -KEN-; 01-30-2002 at 08:34 PM.

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    197
    You can also run your programs from the console than you can see their outputs, too.

    klausi
    When I close my eyes nobody can see me...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  2. internet
    By yeah in forum C Programming
    Replies: 16
    Last Post: 02-12-2005, 10:37 PM
  3. keeping console window open
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2002, 07:15 PM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  5. Invoking MSWord
    By Donn in forum C Programming
    Replies: 21
    Last Post: 09-08-2001, 04:08 PM