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
Change the matrix program (program 3) slightly. Overload == operator to compare two matrices to be added or subtracted. i.e., whether the column of first and the row of second

Object Initialization An object of a derived class can be initialized to an object of a base class. If both the classes have similar data members, then no specific constructor

What I need is an auto-click bot. The auto-click bot would ask me for a url(or it would be pre-defined too) so that it loads that specific url and click an ad automatically. This w

Example for Register Storage Class - computer programming? main() { register int i; for (i=0; i { ............... ............... } } /* block exit will free the register

Implementation of the Definition class: void Definition::put_word(char *s) {    word = new char[strlen(s)+1];    strcpy(word,s);    nmeanings = 0; }   voi

what is c++ ?


Buddy systems : A method of handling the storage management problem is kept individual free lists for blocks of dissimilar sizes. Every list having free blocks of only one particul

A function REPAT is specified below. Function REPAT(c in Char, i in Int, s in mString) return in mString pre 1 ≤ i ≤ the length of s. post The returned value is a string identic

What is the difference among a copy constructor and an overloaded assignment operator? Ans) A copy constructor constructs a latest object by using the content of the argument