next up previous contents
Next: The Insert Methods: Up: The Implementation: Previous: Deleting a Term:

Find If a Power Is in the Polynomial:

    // ******************************************* //
    //  find if a power is in the polynomial       //
    // ******************************************* // 
void FLOAT_POLY::search_power(unsigned int p)
{
  if(get_element_address(p)!=NULL)
    cout << endl << "Polynomial has a power " <<  p  << endl;
  else
    cout << endl << "Polynomial does not have a power p" << endl;    
}



Jim Peterson
1999-04-22