Solved

douably  linked list with thread

Posted on 2000-02-14
4
178 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
  • 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now