Walk tree and copy all the node name into given string vector
void tree_get_node_names( TreeNode & tr, vector<string> & vs, bool bSubNodeOnly = false )
EX1
void tree_get_node_names_ex1() { Tree tr; tr.Math.Score.dVal = 90.5; tr.Math.Bookname.strVal = "Advanced Math"; tr.English.Score.dVal = 95.5; tr.English.Bookname.strVal = "English 1"; vector<string> vsOnlySubNode, vsAllNodes; tree_get_node_names(tr, vsOnlySubNode, true); tree_get_node_names(tr, vsAllNodes, false); }
origin.h