pVal
PropertyNode
public
void *pVal
EX1
void PropertyNode_pVal_ex1() { Tree tr; TreeNode trN = tr.AddNode("node1",1); int nn = 1; int *pn = &nn; trN.pVal = (void*)pn; //Assign void pointer to tree node out_tree(tr); int nVal = *(int*)trN.pVal; printf("The value is %d\n", nVal); }
Void pointer value of the node.
origin.h
PropertyNode::nVal