next up previous contents
Next: Insertion Agents: Up: Overloaded I/O Methods: Previous: Delete an Element From

Is A Given Element In The List?

    // ******************************************* //
    //  find index in list of a given element      //
    // ******************************************* // 
void CHAR_DLLIST::search_element(CHAR search_key)
{
  if(get_element_address(search_key)!=NULL)
    cout << endl << search_key << "is found in list." << endl;
  else
    cout << endl << search_key << "is not found in list." << endl;    
}



Jim Peterson
1999-04-22