#ifndef SEQUENCE #define SEQUENCE const int MAX_SIZE=10; #include using namespace std; class Sequence { public: // Postcondition: This is an empty Sequence. Sequence(); //Postcondition: True has been returned if this Sequence cannot store // any more items. Otherwise, false has been returned. bool full() const; //Postcondition: The number of items currently in this Sequence has // been returned. int size() const; //Precondition: The Sequence will hold at lease one more item. //Postcondition: s has been appended (inserted at the end) of this // sequence. void push_back(const string& s); //Precondition: This Sequence has at least k items. //Postcondition: a reference to the item at position k in this Sequence // been returned. string& operator[] (int k); private: string data[MAX_SIZE]; //an array to store the items int count; //the number of items in the Sequence }; //class Sequence #endif