Make a copy of what is in a stack.
No not copy the pointer.
But i mean actually copy everything in a stack to another stack minus the same pointer locations. All while not altering the original stack.
Thanks
Make a copy of what is in a stack.
No not copy the pointer.
But i mean actually copy everything in a stack to another stack minus the same pointer locations. All while not altering the original stack.
Thanks
Show us your stack, and how you've implemented push and pop
You might want to take a look at memcpy, memmove, memset
http://www.dinkumware.com/htm_cl/string.html#memcpy
--Garfield
1978 Silver Anniversary Corvette
The stack is just a consecutive list of longs... very easy to copy.