树的遍历

二叉树的遍历 前序遍历 #include<bits/stdc++.h> using namespace std; int n; struct s { int l,r,d; }a[10005]; void f(int t)//前序 { if(t==0)return; cout<<t<<' '; f(a
posted @ 2024-01-25 20:09  RTER  阅读(1)  评论(0编辑  收藏  举报