Solved

douably  linked list with thread

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

920 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

11 Experts available now in Live!

Get 1:1 Help Now