数据结构---------------------------------------顺序栈和链栈的实现

今天想把这个顺序栈实现一下,就翻阅资料整理了一下。 下面分别给出顺序栈和链栈的相应功能的实现。 1)顺序栈的图示: 下面是代码: #include<iostream> #include<algorithm> #include<string.h> #define MAXSIZE 100 using namespace std; typedef int SElemType; typedef int S
相关文章
相关标签/搜索