How to avoid console program crash when terminated too early
I've just started working with C++. But I do know C# already, so it shouldn't be too much of a problem. Anyway, when you create a console program, and it's terminated too early because the user closed the window, it returns an error. My Borland/CodeGear C++ Builder even crashes, which is extremely weird (when I used to work with C#, whatever happened with the program, Visual Studio 2005 itself would never crash).
Can anyone help me with this?
Thanks in advance,