Subj : Re: Windows Prompt Runtimes SHORT-Debug To : borland.public.cpp.borlandcpp From : Ed Mulroy [TeamB] Date : Mon Jun 21 2004 09:42 am The situation is this: When your program is run it requests that Windows create a console window. Windows does that and your program runs. When your program finishes the console window is requested to close. This is normal operation. You wish for the window to stay open until you are finished looking at the console window. To do that your program must pause until you are ready for it to close. The method Mr Salzman provided works well. CONIO.H must be included to provide the function prototype for getch. That does not mean STDIO.H should be removed. Since you do not like getch() here are two other methods to achieve similar results. - Place this on the line immediately before the return statement in main getchar(); It might be better if done in this way printf("Press Enter ... "); getchar(); - place a breakpoint on the return statement in main .. Ed > Jeremy Pham wrote in message > news:40d6d3a9$1@newsgroups.borland.com... > > " Bruce Salzman" wrote: > > >#include > > > >Regards, > >Bruce > > Thanks for the help Bruce, however now that I input conio.h > as opposed to stdio.h, my current printf and scanf > statements of the C language won't even be recognized. > Should I change those statements? Also, some problems > posed before were that the compiler didn't recognize "getch()", > and that the programming language you guys suggest may > be C++ rather than C. The main problem was that the runtimes > for the program in the prompt is so short, that I want to prolong > it so I can see my work. .