943,987 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 3265
  • C RSS
You are currently viewing page 1 of this multi-page discussion thread
Apr 28th, 2006
0

linked list implementation of stacks

Expand Post »
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!!!:-|
Similar Threads
Reputation Points: 8
Solved Threads: 0
Junior Poster
KimJack is offline Offline
114 posts
since Apr 2006
Apr 28th, 2006
0

Re: linked list implementation of stacks

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?
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Apr 28th, 2006
0

Re: linked list implementation of stacks

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.
Reputation Points: 718
Solved Threads: 373
Nearly a Posting Maven
Lerner is offline Offline
2,253 posts
since Jul 2005
Apr 28th, 2006
-1

Re: linked list implementation of stacks

Some where in your life, I hope you recieve some kindness. You are obviously lacking in receiving since you lack the knowledge of giving.
Reputation Points: 8
Solved Threads: 0
Junior Poster
KimJack is offline Offline
114 posts
since Apr 2006
Apr 28th, 2006
0

Re: linked list implementation of stacks

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
Reputation Points: 307
Solved Threads: 62
Posting Pro
Bench is offline Offline
565 posts
since Feb 2006
Apr 28th, 2006
1

Re: linked list implementation of stacks

>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.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Apr 28th, 2006
0

Re: linked list implementation of stacks

Quote 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.
Reputation Points: 8
Solved Threads: 0
Junior Poster
KimJack is offline Offline
114 posts
since Apr 2006
Apr 28th, 2006
0

Re: linked list implementation of stacks

Quote 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 .
Reputation Points: 8
Solved Threads: 0
Junior Poster
KimJack is offline Offline
114 posts
since Apr 2006
Apr 28th, 2006
0

Re: linked list implementation of stacks

>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.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Apr 28th, 2006
0

Re: linked list implementation of stacks

Quote 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:
Reputation Points: 8
Solved Threads: 0
Junior Poster
KimJack is offline Offline
114 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: MFC dialog box's questions
Next Thread in C Forum Timeline: need Recursion help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC