數據結構篇:鏈棧應用(括號匹配)(C++)

很簡單,掌握棧的基礎知識即可。 #include <iostream> #include <string.h> using namespace std; struct Node { int data; Node *next; }; class LinkStack { private : Node *top; public : LinkStack() { top=NULL;
相關文章
相關標籤/搜索