Subj : Re: Running 5.02 on XP To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Wed Dec 24 2003 01:09 am When you start a text mode program from within a Windows graphical environment, Windows opens the console window that will show the program's output because the program requires it. When the program is finished that window is no longer required so the console window is closed. If you want to wait at the end to see all of what the program did you can do one of two things, place a breakpoint on the return statement in main or if you place getchar(); on the line immediately before the return in main it will wait for the Enter key to be pressed. .. Ed > Matt wrote in message > news:3fe926e2$1@newsgroups.borland.com... > > I'm a newbie to this programming thing in general, so that's > probably why I'm having a problem with such a simple thing. > When I compile a program and run it, the program only runs > for a split second. I know the program runs fine, I just need to > know how to change some settings so the window doesn't > close automatically when the program has finished. Help > would be much appreciated. .