Is this information that I am a student of systems, but fails to write the program with the information you gave me my teacher, but I would like to know is, furthermore, not only doubly linked if possible also to be circulate.
How can i do a list Doubly linked using Borland C++?
If you study what a doubly-linked list is (and know C), the answer is apparent. The description is almost the program. An item consists of a pointer (aha!) to the previous item, the item's data and a pointer (another one) to the next item. The first item's previous pointer points to null, as does the last item's next pointer. The data is whatever the data is - an integer, a structure of different data elements, even another list.
Moving elements around the list is as simple as changing their previous and next pointers (and the previous and next pointers of 4 other elements).
No comments:
Post a Comment