順序棧的壓棧和出棧

#include<iostream> using namespace std; const int StackSize=10; class SeqStack { public: SeqStack( ) //構造函數,初始化一個空棧 {top=-1;} ~SeqStack( ) { } //析構函數爲空 void Push( int x
相關文章
相關標籤/搜索