*** test program for CNode class
* allocate: node1
* allocate: node2
* allocate: node3
* allocate: node4
* allocate: node5
initial status:
node1
add node3 to node2:
node2
node3
node3
insert node 1 to node2:
node1
node2
node3
node2
node3
node3
node1
 node4
 node5
node2
node3
node4
node5
node5
node2
node3
node3
append node 4 and 5 to node 1 as a child:
foreach nodes from children:
node4
node5
node5
node1
 node4
 node5
node2
node3
node2
node3
node3
node1
node3
node1
remove all children of node1:
* removing all children:
* release: node4
* removing all children:
* isolating all children:
* release: node5
* removing all children:
* isolating all children:
releasing rest node2 and print node1:
* release: node2
* removing all children:
* isolating all children:
releasing rest node3 and print node1:
* release: node3
* removing all children:
* isolating all children:
releasing rest node1:
* release: node1
* removing all children:
* isolating all children:
bye.
