IsValid
Checks if a given node is a valid node or not
BOOL IsValid( )
TRUE if the node is valid; FALSE otherwise.
EX1
void TreeNode_IsValid_ex1() { Tree myTree; TreeNode tn1; bool flag = tn1.IsValid(); out_int("", flag); // 0 tn1 = myTree.AddTextNode("abc", "node1", 2); flag = tn1.IsValid(); out_int("", flag); // 1 }
origin.h