[求助]怎么把二叉树在屏幕上显示出来
运行程序后,把二叉树在屏幕上显示出来。
Beside pre-order traversal, in-order traversal, and post-order traversal. You may use a levle traversal --- for example, for the tree you given, level traversal gives you
1 (0-level) 2 3 (1-level) 4 5 6 7(2-level).