home *** CD-ROM | disk | FTP | other *** search
- // diction.h: Die Wortklasse aus
- // Kapitel 6 der Einführung
-
- #include "def.h"
-
- const int Maxwords = 100;
-
- class Dictionary
- {
- // Ein Array mit Definitionen
- Definition *words;
- int nwords;
-
- int find_word(char *);
-
- public:
- // Der Konstruktor
- Dictionary(int n = Maxwords)
- {nwords = 0; words = new Definition[n];};
-
- // Der Destruktor
- ~Dictionary() {delete words;};
-
- void add_def(char *s, char **def);
- int get_def(char *, char **);
- };
-