简单二叉树代码实现(先序、中序、后序)

简单二叉树代码实现(先序、中序、后序) #include<stdio.h> #include<stdlib.h> typedef struct node{ int data; struct node* left; struct node* right; }Node; //先序 void preorder(Node* node){ if(node!=NULL){ printf("%d
相关文章
相关标签/搜索