Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!handies.UCAR.EDU!wiener From: wiener@stout.UCAR.EDU (Gerry Wiener) Newsgroups: comp.lang.c++ Subject: c++ answer book problem Message-ID: Date: 30 Nov 89 22:03:26 GMT Sender: news@ncar.ucar.edu Organization: NCAR Lines: 22 On page 223 of the c++ answer book there's a "less obvious" solution to problem 12 page 167 of the c++ programming language. This solution leaves a little bit to be desired since it suggests the following solution which ignores constructors and destructors altogether: #include #define main new_funct main() { cout << "Hello world\n"; } #undef main main() { cout << "Initialize\n"; new_funct(); cout << "Clean up\n"; }