//树的链式实现,在结构体中定义两个结构体指针,一个指向第一个儿子,一个指向兄弟
#include <stdio.h>
#include <stdlib.h>
struct treenode{
int element;
struct treenode* firstchild;//第一个孩子
struct treenode* nextslibling;//兄弟
};
//树的链式实现,在结构体中定义两个结构体指针,一个指向第一个儿子,一个指向兄弟
#include <stdio.h>
#include <stdlib.h>
struct treenode{
int element;
struct treenode* firstchild;//第一个孩子
struct treenode* nextslibling;//兄弟
};