Hello everyone,
Been a while but I have a question about creating manual pointers and the logic needed to stick a pointer on the head of the list and the tail of the list. I have the general idea but the logic I am trying to use just isn't working out. Please observe.
The simple code above will produce a linked list. I have declared the additional variables to hold the positions temp and front but in all honesty I can't find the logic that will allow me to put conditions against any of the class Nodei that I have created without receiving object null reference error.Code:Public Class Form1 Public PointerTracker As Nodei Public FrontP As Nodei Public TempP As Nodei Dim GetData As String GetData = txtGetData.Text Dim Node As New Nodei Node = Nothing Node = New Nodei Node.DataHolder = GetData Node.IndexP = PointerTracker PointerTracker = Node Public Class Nodei Public DataHolder As String Public IndexP As Nodei End Class
Yep this is homework. Don't need answers as much as suggestions. Been a while since I have moved around an IDE and am new to data structures. Any ideas?





Reply With Quote