标签:
stack<int> mystack; //create
mystack.push(1);
mystack.pop(); // no return value
mystack.size();
mystack.empty(); //true
if the underlying container‘s size is 0
, false
otherwise.
mystack.top(); // access the top element
标签:
原文地址:http://www.cnblogs.com/XingyingLiu/p/5115392.html