[C++] Linked List Template

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

[C++] Linked List Template

Post by ayu »

Assignment for Uni, to make a Linked List Template library, it's very useful, and it's easy to modify for your needs.

Linked List

A linked list, in this case a Single Linked List, is made out of a List class which contains a nested Node class, which has a value, and a pointer to the next Node instance in the list, making an effective and easy to handle list.

Code: Select all

http://code.suck-oold.com/138
Enjoy :)
Last edited by ayu on 01 Feb 2009, 15:13, edited 1 time in total.
"The best place to hide a tree, is in a forest"

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Update: The code has been updated due to some bugs. It will be updated again due to a new bug that has been discovered in the assignment operator overloading, but I do not have time at the moment to fix it.
"The best place to hide a tree, is in a forest"

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Updated: Final update applied, code should be fully working now.
"The best place to hide a tree, is in a forest"

User avatar
Swan
Knight of the Sword
Knight of the Sword
Posts: 827
Joined: 18 Oct 2006, 16:00
17
Contact:

Post by Swan »

VERY helpful man.

Shall dissect it later. :)
To the wicked, I am merely too knowledgeable in their ways.

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Glad I can be of help :D
"The best place to hide a tree, is in a forest"

Post Reply