在一個數組中實現兩個堆棧 (20 分)

6-1 在一個數組中實現兩個堆棧 (20 分) 本題要求在一個數組中實現兩個堆棧。數組 函數接口定義: Stack CreateStack( int MaxSize );函數 bool Push( Stack S, ElementType X, int Tag );測試 ElementType Pop( Stack S, int Tag );spa 其中Tag是堆棧編號,取1或2;MaxSize堆
相關文章
相關標籤/搜索