Description: Please write a procedure to determine the characteristics of binary tree. Such as: the level of each node from the root to the node of the branch length (path length), the number of descendants and the number of ancestors. Each node in the former sequence, in order, after the preface序号visit.
File list (Check if you may need any files):
作业2
.....\Debug
.....\.....\homework2.obj
.....\.....\vc60.idb
.....\.....\vc60.pdb
.....\.....\作业2.exe
.....\.....\作业2.ilk
.....\.....\作业2.pch
.....\.....\作业2.pdb
.....\homework2.cpp
.....\作业2.dsp
.....\作业2.dsw
.....\作业2.ncb
.....\作业2.opt
.....\作业2.plg