Count number of leaves in the given tree
int tree_count_items( TreeNode & tr, int * lpnSections = NULL )
total number of leaves
EX1
void tree_count_items_ex1() { Tree tr; tr.Math.Grade.dVal = 90.5; tr.English.Grade.dVal = 95.5; tr.Math.Bookname.strVal = "Advanced Math"; tr.English.Bookname.strVal = "English 1"; int nCount = tree_count_items(tr.Math); int nSections; nCount = tree_count_items(tr, &nSections); }
tree_count_items_by_attribute
origin.h