|
|
#1 (permalink) |
|
Bronze Member
![]() Join Date: Jul 2006
Posts: 29
|
is there a way to make a console window stop closing automatically when the program ends.
It is very annoying, the only way I know to avoid it from closing automatically is to launch the program from the command line. an example of this annoyance is to goto Start > run > "ipconfig" |
|
|
|
|
|
#3 (permalink) | |
|
Bronze Member
![]() Join Date: Jul 2006
Posts: 29
|
Quote:
Well duhhhhhhhhhhh!!!! i know that, in fact, i just said that. good job stating the ovious. i'm wondering if there is a registry mod i can do or something so that the damn console doesn't close all the time by itself, so that i have to actually close the window myself. it gets very annoying when you are programming simple console apps in C++ and you can't see the end result w/o it closing. |
|
|
|
|
|
|
#4 (permalink) |
|
Silver Member
![]() Join Date: May 2006
Location: I'm not sure exactly, they keep me locked up in some remote data center.
Posts: 136
|
What compiler are you using? Most of time with console apps you have to tell the system to pause before the program terminates. Here is an familiar example app coded in the Dev-C++ IDE, compiled under the Mingw port of GCC.
#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { cout << "Hello World!!!" << endl; system("PAUSE"); //Tells the system to pause before terminating return EXIT_SUCCESS; }
__________________
CRC failed...the end is near. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recovery console commands...? | CuteSniper22 | Operating Systems | 1 | 07-01-2006 03:36 PM |
| Stop Windows from Automatically Installing Drivers Once a Device is Plugged In | Jiffyman | Operating Systems | 3 | 04-29-2006 02:41 PM |
| folders closing automatically | jp831 | Desktop Computers | 5 | 12-06-2005 03:24 AM |
| How to stop this rebooting? | tech_iam_not | Desktop Computers | 7 | 09-05-2005 07:24 AM |
| Stop XP Console App's from closing automaticly | kb1ghc | Computer Accessories | 3 | 11-14-2004 07:05 PM |