C 順序棧的基本操做

實現代碼以下:ios #include<iostream> using namespace std; const int maxSize = 100; typedef struct{//主要是要有一個數組,和一個top,top空時可用-1代替 int data[maxSize]; int top; }SqStack; void initStack(SqStack &st); int i
相關文章
相關標籤/搜索