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
/
DEF.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-18
|
514b
|
22 lines
// Borland C++ - (C) Copyright 1991 by Borland International
// def.h: A word definition class
// from Hands-on C++
#include <string.h>
const int Maxmeans = 5;
class Definition
{
char *word; // Word being defined
char *meanings[Maxmeans]; // Various meanings of this word
int nmeanings;
public:
void put_word(char *);
char *get_word(char *s) {return strcpy(s,word);}; // line 15
void add_meaning(char *);
char *get_meaning(int, char *);
};