Hello all,

I am wondering if anyone has any or know where I can get examples of
source code using linked list implementation of stacks. It needs to use a class that stores ints that can be retrieved.

Anything you all can provide would be great!!!:-|

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?

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.

Some where in your life, I hope you recieve some kindness. You are obviously lacking in receiving since you lack the knowledge of giving.

Comments
What are you going to do, get OFFENDED at her? Grow up.

>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.

>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.

Mr/Ms Narue this was directed to you and only you. I understand and appreciate exactly what you are saying. However, somewhere in your life the word tact needs to be defined. It is not what you said but how you came across, simply rude. If you don't have any positive advice, please refrain from negative comments. Thank you. Again, I do understand what you are saying and hope you realize that displacement, on your part, is not pretty.

>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.

>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.

"If you ever think Narue is wrong, remember one thing: She's not. ":lol:

Generally, I agree with Narue about the giving away the code part. Most of my teachers and professors were the same way.

But to stay on topic, there are many ways of using linked lists to implement the stack. Back in my sophmore year of college, I did it using doubly linked lists (they were the easiest). However, there are many ways. Once again, I dont want to give the code to you until you try some yourself.

Good luck ;)

This article has been dead for over six months. Start a new discussion instead.