Here's an idea: Why not try writing it yourself first, instead of leeching off of other people because you can't be bothered to think?
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Well, you're going to need to gut out your own linked list code (that's the hardest part of this assignment, really). Then you'll need some mechanism to gaurantee that the last item entered into the list is the first item removed from the list. NOTE--that doesn't necessarily mean that the last item entered into the list has to be the last item of the list. After that, it's pretty straightforward to provide the other methods routinely associated with a stack.
Lerner
Nearly a Posting Maven
2,382 posts since Jul 2005
Reputation Points: 739
Solved Threads: 396
>You are obviously lacking in receiving since you lack the knowledge of giving.
If I give you code without any effort on your part, I've done nothing but hurt you. I wouldn't expect you to have the foresight to appreciate the difference yet, but if you stick to programming, you'll eventually understand. And at that point I hope you regret being a jerk to all of the people who were trying to help you.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
>It is not what you said but how you came across, simply rude.
I'm not surprised that you have no idea what I'm doing. Here's a hint: You're not likely to forget what I've told you. Emotional trauma creates longlasting memories.
>Again, I do understand what you are saying
No, you don't. But you will...if you find any measure of success in programming.
>hope you realize that displacement, on your part, is not pretty.
That's a very nice attempt. Unsuccessful, but very nice indeed.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401