I think we're making this much more difficult then it has to be. The proper way to exit a C++ program is to push the power button on the front of the machine. This way, all the memory gets cleaned out ...
the language supports standard OS linkage. Examples of such languages are IBM assembly language and C. See Sample Program for an example of an exit that is written in assembly language. Note: In all ...