数据结构笔记(4)

栈与队列 一:栈 1.顺序栈的实现 template class SeqStack { public: SeqStack(){top=-1;} ~SeqStack(){} void Push(DataType x); DataType Pop(); DataType GetTop(){if(top!=-1)return data[top];} int Empty(){if (top==-1)ret
相关文章
相关标签/搜索