Expr Sample

Description

This program uses the multiway tree class, IMultiwayTree, to demonstate the use of some common functions of mutiway trees. A tree for the following expression is constructed:
  (8+2) * (2+4) / (7-5) ==> result: 30

A subtree (with two operands and one operator) is calculated and replaced by the result.

Concept

This program is a sample to demonstrate the use of the multiway tree class, IMultiwayTree.

Task

This program creates and uses a multiway tree to demonstrate the use of some common functions of mutiway trees.