Advertisement

Stacks

Started by November 26, 1999 02:39 PM
0 comments, last by GameDev.net 25 years, 3 months ago
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

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

-the logistical one-http://members.bellatlantic.net/~olsongt

This topic is closed to new replies.

Advertisement