Solved

douably  linked list with thread

Posted on 2000-02-14
4
203 Views
Last Modified: 2010-04-02
my list is sorted alphabetically and then the thread is supposed to go from decr number to incr.

My question is where in the add should i do the thread?  Any suggestions how?  Also where and how in delerte?
0
Comment
Question by:superdesio
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:superdesio
ID: 2521345
the list has a name then a id number.  The primary ordering is the name then the id number goin from least to most.
0
 
LVL 7

Expert Comment

by:KangaRoo
ID: 2521731
I do not understand what you mean with 'thread' in this context.

Do you need to know about inserting and deleting from a sorted list?
0
 

Author Comment

by:superdesio
ID: 2525175
i have a doublely linked list that is sorted by name.  then i have  a third pointer in node that will order the  list by number
0
 

Accepted Solution

by:
sirwnstn earned 50 total points
ID: 2530156
Your question is a bit cryptic.  If you are asking about adding and deleting elements while keeping the integrity of the thread, I suggest keeping a pointer to the front and end of the thread.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question