Date: Mon, 16 Sep 1996 14:18:00 +1000 (EST) From: John Joseph Newbigin <079519 AT bud DOT cc DOT swin DOT edu DOT au> To: djgpp AT delorie DOT com Subject: exit() from main() Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII >> There's nothing wrong with using exit to terminate a program, even >> in main. > >Well, sure there's nothing wrong with it... But it performs frivolou >fflush's and other things when all you want to do is end the program >there. Why call another function when all you want is to end the pro >;) for the following C++ program -- example.cpp #include #include class foo { public: foo() { cout<<"Important init. code"<