home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
c
/
tcpp
/
examples
/
def.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-09
|
464b
|
25 lines
// def.h: Eine Wort-Definitionsklasse aus
// Kapitel 6 der Einführung
#include <string.h>
const int Maxmeans = 5;
class Definition
{
// Definition des Worts
char *word;
// Verschiedene Bedeutungen des Wortes
char *meanings[Maxmeans];
int nmeanings;
public:
void put_word(char *);
char *get_word(char *s)
{ return strcpy(s,word);
};
void add_meaning(char *);
char *get_meaning(int, char *);
};