Re: Circular Doubly Link List?


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]

Posted by Sleepless Snowman on July 20, 1999 at 21:31:29:

In Reply to: Circular Doubly Link List? posted by Jason S. on July 20, 1999 at 21:14:00:

: Do we have to make the link list circular in the sense that the last nodes next pointer points to the Head node, and the Head nodes previous pointer points to the last node?

Yeah, that's about right...

: If that is true, then when we use PrevWindow() and NextWindow(), say we are at the Head and we call PrevWindow(), do we can the Head to the last node in our list?

Yeah, that's about right, too...unless you have only one node in the list then both pointers pointers will be referencing itself...

No mean to diss, but kind of hard to follow what you were saying without apostrophes....


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]