![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT
wszzzx
这个作者很懒,什么都没留下…
展开
-
4-2 顺序表操作集
函数接口定义: List MakeEmpty(); Position Find( List L, ElementType X ); bool Insert( List L, ElementType X, Position P ); bool Delete( List L, Position P ); 其中List结构定义如下: typedef int Position; typede原创 2016-12-13 23:13:18 · 428 阅读 · 0 评论 -
4-7 在一个数组中实现两个堆栈
本题要求在一个数组中实现两个堆栈。 函数接口定义: Stack CreateStack( int MaxSize ); bool Push( Stack S, ElementType X, int Tag ); ElementType Pop( Stack S, int Tag ); 其中Tag是堆栈编号,取1或2;MaxSize堆栈数组的规模;Stack结构定义如下:原创 2016-12-17 23:14:11 · 1589 阅读 · 0 评论 -
4-7 在一个数组中实现两个堆栈 (20分)
本题要求在一个数组中实现两个堆栈。 函数接口定义: Stack CreateStack( int MaxSize ); bool Push( Stack S, ElementType X, int Tag ); ElementType Pop( Stack S, int Tag ); 其中Tag是堆栈编号,取1或2;MaxSize堆栈数组的规模;Stack结构定义如下:原创 2016-12-17 23:24:11 · 593 阅读 · 0 评论