next up previous contents
Next: The Destructor: Up: Implementing the FLOAT_POLY_CELL Methods: Previous: The Print/Grab Methods:

The Constructors:

    // ***************************************************** //
    // Default constructor for FLOAT_POLY_CELL class         //
    // ***************************************************** //
 
FLOAT_POLY_CELL::FLOAT_POLY_CELL()
{
  element = 0;
  power = 0;
  next = NULL;
}

    // ***************************************************** //
    // Explicit constructor for FLOAT_POLY_CELL class        //
    // ***************************************************** //
 
FLOAT_POLY_CELL::FLOAT_POLY_CELL(FLOAT x_in,unsigned int power_in)
{
  element = x_in;
  power = power_in;
  next = NULL;
}



Jim Peterson
1999-04-22