• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • Hello World!

    Beautiful World, Wonderful Life.

  • Change the World by Program.

  • A language that doesn't affect the way you think about programming, is not worth knowing.

    Alan J. Perlis

  • Mosher's Law of Software Engineering

    Don't worry if it doesn't work right.
    If everything did, you'd be out of a job.

  • Any code of your own that you haven't looked at for six or more months might as well have been written by someone else. (Eagleson's law)
  • Stewart Brand


    Once a new technology starts rolling, if you're
    not part of the steamroller, you're part of the road.

  • Bjarne Stroustrup

    There are only two kinds of programming languages:
    those people always bitch about and those nobody uses.

  • Nine women can't make a baby in one month.

  • Within a computer,
    natural language is unnatural.

  • If you're the smartest person in the room, then

    you're in the wrong room.

  • Without requirements or design,
    programming is the art of adding bugs to an empty text file.

    --Louis Srygley

  • Fools ignore complexity.
    Pragmatists suffer it.
    Some can avoid it.
    Geniuses remove it.

C++ Programming and Object-Oriented Design

Project 19. Binary Tree System

 

Click to Download the Executable Files.       Click to Download the Sources Files. (Password Needed)

 

Name: Binary Tree System
Copyright: Seng Dewen
Author: Seng Dewen
Date: Oct. 10, 2020
Description: Binary Tree System.


菜单(Press 0 for English Menu)



Menu(按0切换到中文菜单)



1. Create BT(Pre-Order)(前序创建二叉树)



2. Traverse Binary Tree(遍历二叉树)



3. Create BT(Pre-In Order)(前-中序构造二叉树)



4. Create BT(Post-In Order)(后-中序构造二叉树)



5. Clear Binary Tree(清空二叉树)



6.Show Stauts(显示二叉树状态)



7. Get Element(查找结点)



8. Show Node Path(显示结点路径)



9. Delete Node(删除结点)



10. Insert Node(插入结点)



11. Swap Tree(左右交换孩子)



12. Judge Tree Shape(二叉树形态判断)



13. Create BT(Array)(顺序存储创建二叉树)



14. Show Sequence Storage(链式转顺序存储)



15. Print Tree Shape(树型打印)







16. Exit(退出程序)




 

 

 

Back to Top