عندي هذا الكلاس
class Dictionary
{
public:
typedef string key_type; // data type of keys
typedef int value_type; // data type of values
typedef unsigned int size_type; // data type of dictionary counts and / or sizes
Dictionary(); // creates a dictionary (maximum size <= 100)
value_type& operator[]( const key_type& k ); // return a reference to the value indexed by key k
value_type& at( const key_type& k ); // return a reference to the value indexed by key k
void insert( const key_type& k, const value_type& v ); // insert the key-value pair in the dictionary
void merge( const Dictionary& d ); // merge dictionary d into this disctionary
bool find( const key_type& k ) const; // return true if the key is in the dictionary
bool operator== ( const Dictionary& d ) const; // returns true if the d contains the same key-value pairs as this dictionary
bool operator< ( const Dictionary& d ) const; // returns true if all key-values pairs in d are in this dictionary
bool empty() const; // returns true if the dictionary is empty
size_type size() const; // returns the size of the dictionary
size_type maxSize() const; // returns the maximum size of the dictionary
void clear(); // clears the dictionary returning it to the empty state
void erase( const key_type& k ); // erase key-value pair indexed by key k
ostream& print( ostream& = cout ); // prints the key-value items key-value pairs e.g. (k,v),(k,v),...
void load( string fileName ); // loads the dictionary from a file named fileName
void save( string fileName ) const; // saves the dictionary to a file named fileName
private:
static const size_type maxEntry = 100; // suggested layout for private information
key_type keys[ maxEntry];
value_type values[ maxEntry ];
size_type numEntry;
};ومحتاج إلى كتابة كود لدالة ... تقوم بترجيع إذا كان الدقشنري ممتلئ
bool Dictionary::full() const;
ممكن مساعدة؟؟
:blush:

