-
-
- #ifndef STATIC_ARRAY_LIST_H
- #define STATIC_ARRAY_LIST_H
- #include <iostream>
- const int CAPACITY=1024;
- typedef int elementTypt;
-
- class list
- {
- public:
- list();
- ~list();
-
- bool empty() const;
- void insert(elementTypt item,int pos);
- void erase(int pos);
- void dispaly(ostream& out) const;
-
- private:
- int m_Size;
- elementTypt m_Array(CAPACITY);
- };
-
- ostream& operator <<(ostream& out,const list& alist);
-
- #endif // STATIC_ARRAY_LIST_H