PropertyNode::pVal

ClassName

PropertyNode

AccessType

public

Name

pVal

Declaration

void *pVal

Remark

Examples

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);
}

Description

Void pointer value of the node.

header to Include

origin.h

See Also

PropertyNode::nVal

Reference