数据结构——二叉树的数组实现

实现算法:二叉树从上到下,从左往右进行编号,然后放入数组中。 ps:对二叉树进行操作时,对下标和该节点是否有值要进行判断 main文件 #include <iostream> #include "Tree.h" using namespace std; /* run this program using the console pauser or add your own getch, syst
相关文章
相关标签/搜索