home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
c
/
tcpp
/
examples
/
diction.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-09
|
501b
|
27 lines
// 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 **);
};