home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
OTHERUTI
/
TCPP30-3.ZIP
/
EXAMPLES.ZIP
/
DICTION.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-18
|
583b
|
23 lines
// Borland C++ - (C) Copyright 1991 by Borland International
// diction.h: The Dictionary class
// from Hands-on C++
#include "def.h"
const int Maxwords = 100;
class Dictionary
{
Definition *words; // An array of definitions; line 9
int nwords;
int find_word(char *); // line 12
public:
// The constructor is on the next line
Dictionary(int n = Maxwords) {nwords = 0; words = new Definition[n];};
~Dictionary() {delete words;}; // This is the destructor
void add_def(char *s, char **def);
int get_def(char *, char **);
};