A
Andrew
Since stack does not provide iterator interfaces, how to iterate
over it (e.g., print out each element in it for debug purpose) without
changing its structure or copying the whole stack to another stack for such
purpose?
Thanks a lot.
-Andrew
over it (e.g., print out each element in it for debug purpose) without
changing its structure or copying the whole stack to another stack for such
purpose?
Thanks a lot.
-Andrew