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