Category : C++ Source Code
Archive   : CPPTUT.ZIP
Filename : BOX.CPP

 
Output of file : BOX.CPP contained in archive : CPPTUT.ZIP
// Chapter 5 - Program 8
#include "box.h"


box::box(void) //Constructor implementation
{
length = 8;
width = 8;
}


// This method will set a box size to the two input parameters
void box::set(int new_length, int new_width)
{
length = new_length;
width = new_width;
}


box::~box(void) //Destructor
{
length = 0;
width = 0;
}




// Result of execution
//
// This implementation file cannot be executed


  3 Responses to “Category : C++ Source Code
Archive   : CPPTUT.ZIP
Filename : BOX.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/