// ********************************************************* //
// const print function for FLOAT_POLY_CELL //
// ********************************************************* //
ostream& FLOAT_POLY_CELL::print(ostream& output) const
{
if(this!=NULL){
output << "(" << element << ")";
if(power == 0)
output << " ";
else if (power == 1)
output << " x";
else
output << " x^" << power;
if(next!=NULL)
output << "+";
else
output << ".";
return(output);
}
else{
cout << "CELL is NULL " << endl;
return(output);
}
}
// ********************************************************* //
// grab function for FLOAT_POLY_CELL //
// ********************************************************* //
istream& FLOAT_POLY_CELL::grab(istream& in)
{
in >> element;
in >> power;
return(in);
}