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
types of lists

Define Bitwise-Shift Operators? The shift operators perform suitable shift by operator on the right to the operator on the left. The right operator should be positive. The va

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve betw

Problem Description 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 sometime

how objects are initialized dynamically?

how to write a program for all the types of beam reactions

Selection Sort using this a nested for loop to iterate through and compare the array elements. If the value of an element with lower index is greater than the value of an element w

need to create c++ classes to store all pascal types in compiler design.

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes

Convert a COV/CPE (Micosoft Fax Cover Page) file to a TIF image file Project Description: I would like a small API written that will take a COV/CPE file and replaced the corr