实验二栈和队列

一、 1.顺序栈: 源代码: #include <iostream.h> const int StackSize=10; template <class DataType> class SeqStack { public: SeqStack(){top=-1;} ~SeqStack(){} void Push(); void Pop(); DataType GetTop(){if(top!=-1)
相关文章
相关标签/搜索