摘要:
1 #include 2 #include 3 using namespace std; 4 5 //结点的结构体 6 //内涵三个参数,关键字Key,左孩子指针,右孩子指针 7 typedef struct _NODE_ 8 { 9 int Key; 10 _NODE_* pLeft; 11 _NODE_* pRight; 12 }Node,*pNode; 13 14 //中序遍历 15 void InOrderTraves(pNode T); 16 17 18 //层状遍历 19 void LevelTraves(pNode T); ... 阅读全文