I didnt know sarcasm was allowed outside Geek's Lounge :-)
Well getting back to the topic, there are some cases where u just cant stop the console window from disappearing without the use of system ("pause") (just wanted to let u know that i have read the disdvantages of system function provided in the above thread).
Take for example a prog. that has many exit (0) and exit (1) calls to duck out in case of some failure like mem. allocation failure. In this case the calls to getchar () and cin.get() placed at the end of the program just wont happen since the exit (int) has already taken place.
So other than system("pause") do you know any other way the console screen can be stopped?
Sorry but i didnt understand this solution since never worked with command line compilers. If poss can u elaboreate on this. Thanks a lot.
I'm not talking about the compiler, I'm talking about the executable. A console application run from a command shell does not have this issue. Done. And if you've got a GUI app, then this is moot anyway.