stephen@comp.lancs.ac.uk (Stephen J. Muir) (08/14/86)
The following program fails to compile. The compiler wants a second argument for the the declaration "x z;". It works fine with only one argument in the constructor, or if the words "const" are deleted. # include <stream.h> class x { char *save; public: x(const char *a = 0, const int b = 0) { cout << "Initialize\n"; } ~x() { cout << "Clean up\n"; } }; x z; main () { cout << "Hello, world\n"; } -- EMAIL: stephen@comp.lancs.ac.uk | Post: University of Lancaster, UUCP: ...!mcvax!ukc!dcl-cs!stephen | Department of Computing, Phone: +44 524 65201 Ext. 4120 | Bailrigg, Lancaster, UK. Project:Alvey ECLIPSE Distribution | LA1 4YR