c++树的节点的表示方法:
1 typedef struct Node *Tree; 2 struct Node 3 { 4 int data; 5 Node *left; 6 Node *right; 7 int flag; 8 };
创建新节点:
1 Tree T = new Node;
删除节点:
1 delete(T);
c++树的节点的表示方法:
1 typedef struct Node *Tree; 2 struct Node 3 { 4 int data; 5 Node *left; 6 Node *right; 7 int flag; 8 };
创建新节点:
1 Tree T = new Node;
删除节点:
1 delete(T);
转载于:https://www.cnblogs.com/lxc1910/p/8745679.html