Linked list

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2006
Posts: 3
Reputation: codeme is an unknown quantity at this point 
Solved Threads: 0
codeme codeme is offline Offline
Newbie Poster

Linked list

 
1
  #1
Sep 10th, 2006
hey guys

I have to write this program and I really suck at it. I need a doubly linked list which is ordered. I was told that I can pull one off the internet and just use it. Ive been looking for one but I cant find it, so I was wondering if any of you know a site or if any one of you already have code for this kinda lost.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: Linked list

 
0
  #2
Sep 10th, 2006
post your program first. We don't just hand over source code for students expecting a quick solution and get a good grade. Or you can google yourself for source code.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 3
Reputation: codeme is an unknown quantity at this point 
Solved Threads: 0
codeme codeme is offline Offline
Newbie Poster

Re: Linked list

 
0
  #3
Sep 10th, 2006
Originally Posted by WolfPack View Post
post your program first. We don't just hand over source code for students expecting a quick solution and get a good grade. Or you can google yourself for source code.
my project is pretty long. the first step is to generate a bunch of random numbers and make sure they are between the range specified and unqiue. Then do a bunch of operations like insertng more numbers and stuff like that. Then i generate another random number file and see if any of those are in that file, if yes then i print the position (by printing the number before and after it) so the whole project has a lot with generating random numbers and I obviously need a linked list to do it. My prof said that we can use one online as long as we mention it on top and let her know that we havent written it, which is what i plan to do. I could write a linked list but its too time consuming. I looked up google but I coudlnt find one which is why i wanted to ask if any one of you might have one that I coudl use.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: Linked list

 
0
  #4
Sep 10th, 2006
Are you using C or C++? If you can use C++ there is the standard template library which has a doubly linked list. You can use that without a problem. If it is in C, then post the project with the work you have done up to now. I will post a link (no pun intended) for the doubly linked list in C.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,416
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 248
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Linked list

 
1
  #5
Sep 10th, 2006
Maybe take a peek in the Code Snippets?
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 3
Reputation: codeme is an unknown quantity at this point 
Solved Threads: 0
codeme codeme is offline Offline
Newbie Poster

Re: Linked list

 
0
  #6
Sep 10th, 2006
Originally Posted by Dave Sinkula View Post
Maybe take a peek in the Code Snippets?
hey i actually found it online(guess i need to learn to look better haa). thanks anyway
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,629
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 468
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Linked list

 
1
  #7
Sep 11th, 2006
Just searching for the code to do something or to complete a project is no substitute for solving the problem by putting in your genuine effort. If you want to solve or make this project why not consider it as a fun exercise and try your own hand at it. If you still have problems, look at the code provided on some sites and try to learn from it. It you still have doubts regarding anything post your question here.

Just copy pasting the code and then completeing the project wont do you any good.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Reply

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


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC