Category : C++ Source Code
Archive   : BLFMATH.ZIP
Filename : TSTMAIN.CPP

 
Output of file : TSTMAIN.CPP contained in archive : BLFMATH.ZIP
/////////////////////////////////////////////////////////////////////
// Main program used for testing shape construction and destruction
// Copyright(c) 1993 Azarona Software.
/////////////////////////////////////////////////////////////////////

main()
{
// Record how many global Shapes were constructed
int global_objects = Shape::objects_needing_destruction;
test();
// Check that ctor/dtor calls balance out
if (Shape::objects_needing_destruction == global_objects) {
cout << "\nConstructors and destructors balance.\n";
}
else {
cout << "\nConstructors/destructors out of balance.\n"
<< "Number of objects left undestructed: "
<< Shape::objects_needing_destruction << '\n';
}
cout << "Should be " << global_objects
<< " global objects left to destroy:\n";
return 0;
}



  3 Responses to “Category : C++ Source Code
Archive   : BLFMATH.ZIP
Filename : TSTMAIN.CPP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/