Category : Recently Uploaded Files
Archive   : HEADZIP.EXE
Filename : TESTSUPP.CPP

 
Output of file : TESTSUPP.CPP contained in archive : HEADZIP.EXE
//----------------------------------------------------------------------
// testsupp.cpp
// Test driver for Supply class
//----------------------------------------------------------------------
#include "supply.h"
#include "pen.h"
#include "fountpen.h"

int main()
{
Supply* item[100];
int i;

item[0] = new Supply("Paper clip", 7415, 100, .05);
item[1] = new Supply("12-in. ruler", 9312, 200, 1.98);
item[2] = new Supply("Paper tray", 1045, 400, .89);
item[3] = new Pen("Felt pen", 4593, 200, .75, red, blue);
item[4] = new FountPen("Gold nib pen", 8734, 20, 48.39,
green, blue, cartridge);
item[5] = new FountPen("Desk pen", 8825, 30, 23.39,
green, NA, directFill);

for (i = 0; i < 3; i++)
item[i]->Display();

Pen* penPtr = (Pen*) item[3];
penPtr->Display();

FountPen* fPenPtr = (FountPen*) item[4];
fPenPtr->Display();

fPenPtr = (FountPen*) item[5];
fPenPtr->Display();

return 0;
}



  3 Responses to “Category : Recently Uploaded Files
Archive   : HEADZIP.EXE
Filename : TESTSUPP.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/