PDA

Click to See Complete Forum and Search --> : Making the console stay after running program


StarmanUltra
Mar 14th, 2002, 04:47 PM
Hey all. I was just wondering how to make the console remain after your console app has finished running... Mine closes like the second that the program runs.

crptcblade
Mar 14th, 2002, 05:34 PM
#include <stdio.h>
#include <stdlib.h>

int main()
{
printf("Hello World!\n");

system("pause");

return 0;
}


:)

StarmanUltra
Mar 14th, 2002, 05:48 PM
Thank you!