【數據結構】C/C++ 順序棧的 建立、初始化、入棧、遍歷等基本操做

#include <bits/stdc++.h> #define MAXSIZI 10 using namespace std; // 順序棧 typedef struct SequentStack { int data[MAXSIZI]; //定義數組的大小 int top; //top始終指向棧頂元素 }SequentStack; //初始化 SequentSt
相關文章
相關標籤/搜索