GetNodeCount
Get the number of children nodes in the tree node.
int GetNodeCount( )
number of nodes in the node
EX1
void TreeNode_GetNodeCount_ex1() { Tree tr; TreeNode tn1, tn2, tn3; tn1 = tr.AddNumericNode(123, "node1", 1); tn2 = tr.AddTextNode("abc", "node2", 2); tn3 = tn2.AddTextNode("abc", "node3", 2); out_tree(tr); printf("number of nodes in tree = %d", tr.GetNodeCount()); // should be 2 }
origin.h