HACKERBOT

shotting.cc

DEFCON-1

HOME

WELCOME TO SHOTTING.CC

Linked List Code (VB.NET)

Class Node
Public List as New Node
Public Data as Integer
End Class

Class Main
Private sub Button1_Click()
Dim NODE as New Node
NODE.List = Attach(1)
Dim StartNode as Node = NODE
NODE = NODE.List
NODE.List = Attach(2)
NODE = NODE.List
NODE = StartNode
Console.WriteLine(NODE.Data)

End Sub
private function Attach(ByVal data as integer) as Node
Dim NODE as New Node
NODE.Data = data
Return NODE
End Sub
End Class