1 stl的stack
#include <stack>
stack<int> mystack;
void
pop ( );
bool empty ( ) const;
void push ( const T& x );
size_type size ( ) const;(int) myints.size()
value_type& top ( );
本文介绍了C++标准模板库(STL)中的stack容器的基本用法,包括如何创建一个空的stack对象、stack的主要成员函数如push、pop、empty、size及top等。
1 stl的stack
#include <stack>
stack<int> mystack;
void
pop ( );
bool empty ( ) const;
void push ( const T& x );
size_type size ( ) const;(int) myints.size()
value_type& top ( );

被折叠的 条评论
为什么被折叠?