栈的常用操作函数:
top()
push()
pop()
size()
empty()

 

建栈:

stack<int> st;

stack<int> st[4]; 四个栈

 

 

//可以使用list或vector作为栈的容器,默认是使用deque的。

;
;

相关文章: