#pragma once #include "DictionaryEntryT.h" #include const size_t MAX_DICTIONARY{100}; const size_t NOT_FOUND{MAX_DICTIONARY+1}; class DictionaryT { public: DictionaryT(); void Sort(); size_t Find(const DictionaryEntryT & key) const; void AddWord(DictionaryEntryT word); DictionaryEntryT GetEntry(size_t pos) const; DictionaryEntryT GetEntry(std::string word) const; size_t Size() const; size_t Capacity() const; private: size_t MyFind(DictionaryEntryT key) const; DictionaryEntryT data[MAX_DICTIONARY]; size_t size{0}; };