1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#define STACK_H_INCLUDED
template <class T> class Stack{ private: int size; int top; T* contain; public: Stack() : size(0), top(-1), contain(NULL) {} Stack(int MaxSize); void (T & element); T & top(); void pop(); bool isEmpty(); void MakeEmpty(); };
#endif
|
近期评论