Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
package
|
||||
{
|
||||
public class Node
|
||||
{
|
||||
public var data:Object = null;
|
||||
public var link:Node = null;
|
||||
|
||||
public function insert(node:Node):void
|
||||
{
|
||||
node.link = link;
|
||||
link = node;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import Node;
|
||||
|
||||
var A:Node = new Node(1);
|
||||
var B:Node = new Node(2);
|
||||
var C:Node = new Node(3);
|
||||
A.insert(B);
|
||||
A.insert(C);
|
||||
Loading…
Add table
Add a link
Reference in a new issue