linked list implementation of stacks

Reply

Join Date: Apr 2006
Posts: 114
Reputation: KimJack is an unknown quantity at this point 
Solved Threads: 0
KimJack KimJack is offline Offline
Junior Poster

linked list implementation of stacks

 
0
  #1
Apr 28th, 2006
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!!!:-|
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,625
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 716
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: linked list implementation of stacks

 
0
  #2
Apr 28th, 2006
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?
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1,678
Reputation: Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all 
Solved Threads: 263
Lerner Lerner is offline Offline
Posting Virtuoso

Re: linked list implementation of stacks

 
0
  #3
Apr 28th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 114
Reputation: KimJack is an unknown quantity at this point 
Solved Threads: 0
KimJack KimJack is offline Offline
Junior Poster

Re: linked list implementation of stacks

 
-1
  #4
Apr 28th, 2006
Some where in your life, I hope you recieve some kindness. You are obviously lacking in receiving since you lack the knowledge of giving.
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 486
Reputation: Bench has a spectacular aura about Bench has a spectacular aura about Bench has a spectacular aura about 
Solved Threads: 48
Bench's Avatar
Bench Bench is offline Offline
Posting Pro in Training

Re: linked list implementation of stacks

 
0
  #5
Apr 28th, 2006
There was a thread on another forum a few days ago about Linked Lists, give it a read, because the answers might help you. http://cboard.cprogramming.com/showthread.php?t=78460
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,625
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 716
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: linked list implementation of stacks

 
1
  #6
Apr 28th, 2006
>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.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 114
Reputation: KimJack is an unknown quantity at this point 
Solved Threads: 0
KimJack KimJack is offline Offline
Junior Poster

Re: linked list implementation of stacks

 
0
  #7
Apr 28th, 2006
Originally Posted by Narue
>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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 114
Reputation: KimJack is an unknown quantity at this point 
Solved Threads: 0
KimJack KimJack is offline Offline
Junior Poster

Re: linked list implementation of stacks

 
0
  #8
Apr 28th, 2006
Originally Posted by Bench
There was a thread on another forum a few days ago about Linked Lists, give it a read, because the answers might help you. http://cboard.cprogramming.com/showthread.php?t=78460
Thank you Bench the site was a big help .
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,625
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 716
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: linked list implementation of stacks

 
0
  #9
Apr 28th, 2006
>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.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 114
Reputation: KimJack is an unknown quantity at this point 
Solved Threads: 0
KimJack KimJack is offline Offline
Junior Poster

Re: linked list implementation of stacks

 
0
  #10
Apr 28th, 2006
Originally Posted by Narue
>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:
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC