// File sentence.h. Header file for SentenceAnalyzer class #ifndef SENTENCE_H #define SENTENCE_H #include #include #include #include #include "boolean.h" const char PERIOD = '.'; const int MAX_NUM_WORDS = 50; const int MAX_LENGTH = 14; const int MAX_LINE = 256; class SentenceAnalyzer { public: SentenceAnalyzer(); // default constructor void ReadSentence(void); // read sentence int NumSentenceWords(void) const; // number of words in sentence void SplitSentence(const char [][MAX_LENGTH + 1], int) const; // split sentence private: char SentenceWords[MAX_NUM_WORDS][MAX_LENGTH + 1]; // words in sentence int NumWords; // number of words in SentenceWords boolean_t IsSplitWord(const char [], // is word in array of split words? const char [][MAX_LENGTH + 1], int) const; }; #endif