C++STL stack

stack栈

先进后出

stack<int> s ;

s.push();//元素入栈

//出栈

while(!s.empty())
{

  int tmp = s.top();

  s.pop();

}

原文地址:https://www.cnblogs.com/smh2015/p/9637630.html