Add words in dictionary - c++ program, C/C++ Programming

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;

}

 

 

Posted Date: 10/18/2012 6:21:50 AM | Location : United States







Related Discussions:- Add words in dictionary - c++ program, Assignment Help, Ask Question on Add words in dictionary - c++ program, Get Answer, Expert's Help, Add words in dictionary - c++ program Discussions

Write discussion on Add words in dictionary - c++ program
Your posts are moderated
Related Questions
Define Storage Classes of c program - computer programming? Each variable and function in C language has two attributes that are type and storage class. If storage class of a v

Objects as Function Arguments: In C program there are several methods to define arguments, and in some case even a structure can be approved as an argument.  Similarly in C+

one of the segments is showing compilation error...

Implementing files in c++


There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Implement a menu driven real estate catalogue system that allows users to perform various catalogue maintenance and search tasks.  You are only allowed to use the C programming la

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome