You need to do a while loop, something like:
Code:
bool quit;
while (!quit)
{
if (inpute == 0)
quit = true;
}
system("PAUSE"); // This is optional :-).
Put the main program code in there :-). It's exiting like that because once it's done displaying everything (almost immediatly), it then has no more code to execute, thus ending the program.
__________________