2.2.3.17.35 TreeNode::Reverse

Description

Reverse the order of the child nodes

Syntax

BOOL Reverse( )

Parameters

Return

TRUE if successful FALSE if fail

Examples

EX1

void TreeNode_Reverse_ex1()
{
    Tree tr;
    tr.a.nVal = 1;
    tr.b.nVal = 2;
    tr.c.nVal = 3;
    tr.Reverse();
    out_tree(tr);
    // should display
    /*
	OriginStorage
	 +---c = 3
	 +---b = 2
	 \---a = 1
	*/
}

Remark

Reverse the order of the child nodes

See Also

Header to Include

origin.h