二叉搜索树 链表
摘要:
有指针一定要小心中,今天一不小心,浪费了我一个小时去改错。。悲剧。。。注意指针初始化。。。还有全局变量,局部变量。。指针与取地址。。#include<stdio.h>#include<string.h>//#include<debug.h>#include<stdlib.h>typedef struct node{ struct node *rchild,*lchild; int ch;}NODE,*NOE;void creattree(NOE &T,NOE P){ NOE S,Q; if(P==NULL) return ; //prin 阅读全文
posted @ 2011-04-16 11:33 more think, more gains 阅读(164) 评论(0) 推荐(0) 编辑