對上面前序遍歷和中序遍歷樹輸出層次遍歷的的修改

#include <iostream>#include <stdio.h> #include <queue> using namespace std; struct node{ int data; node* lchild; node* rchild;  }; const int maxn=100; int pre[maxn],in[maxn]; int n; node* create(int p
相關文章
相關標籤/搜索