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
How does an ERP System facilitates better decision making?

Please give me a programming code of first & follow with c or c++ laqnguage .When anyone give me the programming code of first & follow please explain every lines with the help

A: Use p = new T[n] and delete[] p:   Fred* p = new Fred[100]; ... delete[] p; Any time you allocate an array of objects through new (generally with the [n] in the n

Molecular dynamics for a Lennard-Jones system (in C++) 1. Write a function which reads in the input variables of a molecular dynamics simulation of a Lennard-Jones system. The inpu

Simpson's Rule is a more accurate method of numerical integration than the method described in class. Using Simpson's Rule, the integral of a function f between a and b is approxim

please help me get all the inbuilt functions in c++

Binomial coefficients are the numeric factors of the products in a power of a binomial such as (x + y)n. For example, (x + y)2 = x2 + 2 x y + y2 has the coefficients 1 2 1. Binomia

find the area of a curve y=f(x) between x=a and x=b integrate f(x) between limits a and b   #include float start_point, /* GLOBAL VARIABLES */

Implementing Operator Functions The general format of the Operator function is: return_type operator op ( argument list );   Where op is the symbol for the operator be

Can any constructor throw an exception? How to handle error while the constructor fails?