Created
September 17, 2012 20:10
-
-
Save aybabtme/3739487 to your computer and use it in GitHub Desktop.
Horror in my CSI2110 Lab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ListNode nNode = new ListNode(); | |
nNode.data = 1; | |
DLinkedList list = new DLinkedList(); | |
list.firstNode = nNode; | |
list.lastNode = nNode; | |
// add items to linked list | |
for (int i = 2; i < 11; i++) { | |
nNode = new ListNode(); | |
nNode.data = i; | |
list.AppendNode(nNode); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment