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
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!
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 might want to take a look at some STL (Standard Template Library) sites to see a variety of options depending on your particular needs