Jump to content

  • Log In with Google      Sign In   
  • Create Account


Stacks


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 26 November 1999 - 08:39 AM

I need some help...

I created a stack like this,

stack stc;

I pushed a couple of elements on to it and now I want to print out all the elements of the stack, not just the top one. How do I do that??

Thanks
Mike


Sponsor:

#2 logistix   Members   -  Reputation: 122

Like
Likes
Like

Posted 26 November 1999 - 08:39 AM

You probably don't want to use a stack if you want to list everything. You probably want to use a more generalized list. Stacks only care about what's on top, that's the whole point.

You might want to take a look at some STL (Standard Template Library) sites to see a variety of options depending on your particular needs





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS