3-31树的练习||
摘要:
建立排序树#include<stdio.h>struct node{ node *lchild; node *rchild; int r;}tree[102];int loc;node *create(){ tree[loc].lchild = tree[loc].rchild = NULL; return &tree[loc ++];}void *build(int x,node *t){ node *q = t; node *p = create(); p -> r = x; while(q -> rchild != NULL || q... 阅读全文
posted @ 2013-03-31 20:32 lgy111 阅读(119) 评论(0) 推荐(0) 编辑