title: How to prevent the console window to close when running a console application?
body: <p>I'm creating a simple console application under Windows XP and wondering if there is a way to keep the console window open after the application is run from the Windows run prompt, without putting an endless loop at the end of main().  I want the app to behave like it was run from the run prompt after first typing cmd.  </p>