C++ 标准模板库STL
急求C++标准模板库STL里面的stack类的各成员函数(如pop();top();empty()等)的用法(包括参数、返回值类型等)。谢谢!急急急急……...
急求C++标准模板库STL里面的stack类的各成员函数(如pop();top();empty()等)的用法(包括参数、返回值类型等)。谢谢!急急急急……
展开
3个回答
2008-09-25
展开全部
Constructors
stack
Constructs a stack that is empty or that is a copy of a base container object.
Typedefs
container_type
A type that provides the base container to be adapted by a stack.
size_type
An unsigned integer type that can represent the number of elements in a stack.
value_type
A type that represents the type of object stored as an element in a stack.
Member Functions
empty
Tests if the stack is empty.
pop
Removes the element from the top of the stack.
push
Adds an element to the top of the stack.
size
Returns the number of elements in the stack.
top
Returns a reference to an element at the top of the stack.
MSDN就可以了。
stack
Constructs a stack that is empty or that is a copy of a base container object.
Typedefs
container_type
A type that provides the base container to be adapted by a stack.
size_type
An unsigned integer type that can represent the number of elements in a stack.
value_type
A type that represents the type of object stored as an element in a stack.
Member Functions
empty
Tests if the stack is empty.
pop
Removes the element from the top of the stack.
push
Adds an element to the top of the stack.
size
Returns the number of elements in the stack.
top
Returns a reference to an element at the top of the stack.
MSDN就可以了。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询