Get TreeNode level
int tree_get_level( const TreeNode & trNode, string * pstrPath = NULL )
the level of TreeNode
EX1
void tree_get_level_ex1() { Tree tr; TreeNode tn=tr.AddNode("L1"); for(int ii=2; ii<4; ii++) tn=tn.AddNode("L"+ii); int nLevel=tree_get_level(tn); out_int("Tree Node level is ", nLevel); }
origin.h