stack

Hello everyone. I'm now writing a code that does some actions with a stack. Actually it's ok, but I have a problem here. I have a stack and I need to copy its elements to another one missing the repeated elements.The problem is that I have to use the pop function and I distort the stack. I can't write the function properly.
Could you please help me by showing the right way or giving some hints. Any help will be appreciated. Thanks in advance.
but none of them was answered
Topic archived. No new replies allowed.