順序棧的建立與操做

#include<iostream> typedef int Elemtype; const int MaxSize = 50; //設置鏈表最大長度 /* 1.棧頂Top值不能超過MaxSize 2.空棧的斷定條件一般定爲top == -1,滿棧的斷定條件一般爲top == MaxSize-1 棧中元素個數爲top+1 */ //順序棧 typedef struct { Elemtyp
相關文章
相關標籤/搜索