boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - a question about std::stack
相关主题
一个C++的概念问题
type inferience 好处是什么
问一下STL里的queue, and stack 遍历的问题 (转载)
为什么会有recursion stack overflow这个问题?
C#复制栈是反序的?
intel icc hash_map 求救!
STL感觉实在太变态了
[菜鸟问题]类模板问题
c++ iterator 弱问
c++ template question:
相关话题的讨论汇总
话题: stack话题: std话题: question话题: its话题: does
进入Programming版参与讨论
1 (共1页)
h*********y
发帖数: 49
1
Is there a way to print out its contents?
stack does not have iterator, does it infer that no way to access its other
element except the top one?
X****r
发帖数: 3557
2
Right.
If you want to iterate through elements in the stack without popping
them out, you should not have chosen stack as your data structure in
the first place.

other

【在 h*********y 的大作中提到】
: Is there a way to print out its contents?
: stack does not have iterator, does it infer that no way to access its other
: element except the top one?

1 (共1页)
进入Programming版参与讨论
相关主题
c++ template question:
请问Linux底下有没有最简易的show 2D x-y curve的工具
用那个design pattern好?
关于inserter
binary_search只要求forward_iterator?
deque的pointer和reference是怎么回事?
呼唤大侠们,我实在不能实现C++泛型的精神。
stl 的 member type 看起来挺头大的
how to write a function take iterators as parameters?
c++ interview: iterator 和 pointer区别?
相关话题的讨论汇总
话题: stack话题: std话题: question话题: its话题: does