Programming
#ifndef LISTTYPE_H #define LISTTYPE_H class listType { public: // Returns True if List Size is 0 bool isEmpty() const; // Returns True if List Size is Same As Max Size bool isFull() const; // Returns Index for First Occurance of Item in List, -1 if Not Found int search(int searchItem) const; // Adds New Element to End of List void add(int newElement); // Removes First Occurance of Element in List void remove(int removeElement); // Resets List to be Empty List void clear(); // Prints (cout) All Contents of List void print() const; // Returns Value of Element at Index Provided int getElementAtPosition(int index) const; // Returns Current List Size int size() const; // Returns True if OtherList and This List Have the Same Elements // In The Same Order bool isEqual(const listType &otherList) const; // Returns the Maximum Number of Elements That Can be Stored int maxSize() const; // Constructor; Should Start New List as Empty List listType(); private: static const int MAX_SIZE = 1000; int list[MAX_SIZE]; int listSize; }; #endif