home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Education
/
collectionofeducationcarat1997.iso
/
COMPUSCI
/
CPPTUT.ZIP
/
FLYAWAY.H
< prev
next >
Wrap
Text File
|
1990-07-20
|
823b
|
29 lines
#ifndef FLYAWAYH // Only apply these definitions once
#define FLYAWAYH
#define FALSE 0
#define TRUE 1
enum word {north = 1, east, south, west, drop, get,
look, inventory, read, buy, help, quit,
keys, candy, ticket, money, monitor, paper};
// Prototypes for functions which are not members of
// any class.
void initialize(void);
void get_command(word &verb, word &noun);
void perform_action(word &verb, word noun);
void read_a_line(word &wd1, word &wd2);
int get_an_ASCII_word(char in_string[]);
int find_in_dictionary(char in_string[]);
int is_a_verb(word input_word);
int is_a_noun(word input_word);
int is_a_direction(word input_word);
int is_an_operation(word input_word);
int is_a_valid_pair(word input_word1, word input_word2);
#endif