#include<stdio.h>#include<stdlib.h>#include<time.h>struct Data
{
int id;};struct STree
{
Data data;
STree* left;
STree* right;}*head=NULL;voidtravel(STree* now, Data data);voidinsert(STree** head, Data data);
STree*find_min(STree* now);
STree*find_max(STree* now);
STree*Delete(STree* now, Data data);voidtravel_and_print(STree* now);intmain(){
srand(time(0));for(int i =0; i <=20; i++){
Data temp;
temp.id =rand()%100;insert(&head, temp);}printf("先序遍历的结果为:\n");travel_and_print(head);printf("\n