🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Stacks

Started by
0 comments, last by GameDev.net 24 years, 7 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

Advertisement
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