add words in dictionaryvoid dictionaryadd


Add words in Dictionary:

void Dictionary::add( Object& objectToAdd )

{

    if( !objectToAdd.isAssociation() )

        ClassLib_error( __ENOTASSOC );

    else

        Set::add( objectToAdd );

}

 

Association& Dictionary::lookup( const Object& toLookUp ) const

{

    Association toFind( (Object&)toLookUp, NOOBJECT );

    toFind.ownsElements(0);

 

    Association& found = (Association&)findMember( toFind );

    return found;

}

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: add words in dictionaryvoid dictionaryadd
Reference No:- TGS0174762

Expected delivery within 24 Hours