954,198 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Linked list

hey guys

I have to write this program and I really suck at it.:sad: 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.

codeme
Newbie Poster
3 posts since Sep 2006
Reputation Points: 13
Solved Threads: 0
 

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.

WolfPack
Postaholic
Moderator
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
 
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.

codeme
Newbie Poster
3 posts since Sep 2006
Reputation Points: 13
Solved Threads: 0
 

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.

WolfPack
Postaholic
Moderator
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
 

Maybe take a peek in the Code Snippets ?

Dave Sinkula
long time no c
Team Colleague
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
 
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 :)

codeme
Newbie Poster
3 posts since Sep 2006
Reputation Points: 13
Solved Threads: 0
 

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.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 733
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You