构造函数: stack<T> stk; stack stk(const stack& s);
stack<T> stk;
stack stk(const stack& s);
赋值操作: stack& operator=(const stack& stk);
stack& operator=(const stack& stk);
数据存取: push(elem); pop(); top(); 只有栈顶可以访问,不允许有遍历操作
push(elem);
pop();
top();
大小操作: empty(); size();
empty();
size();