Printing out a binary search tree with slashes
问题 http://pastebin.com/dN9a9xfs That's my code to print out the elements of a binary search tree. The goal is to display it in level order, with slashes connecting the parent to each child. So for instance, the sequence 15 3 16 2 1 4 19 17 28 31 12 14 11 0 would display after execution as: 15 / \ 3 16 / \ \ 2 4 19 / \ / \ 1 12 17 28 / / \ \ 0 11 14 31 I've been working on it for a long time now, but I just can't seem to get the spacing/indentation right. I know I wrote the proper algorithm for