STL之 stack

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

建栈:

stack<int> st;

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

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

stack<intlist<int>> a;
stack<intvector<int>>   b;
原文地址:https://www.cnblogs.com/qinduanyinghua/p/11288601.html