stl stack


stack<int> mystack; //create mystack.push(1); mystack.pop(); // no return value mystack.size(); mystack.empty(); //true if the underlying container's size is 0false otherwise.
mystack.top(); // access the top element
posted @ 2016-01-09 04:55  飞飞喵  阅读(124)  评论(1)    收藏  举报