摘要: 题不难,数据结构之BST,就是输入纠结了一会#include <iostream> #include <cstring> using namespace std; const int maxn=30; struct Tnode { char data; Tnode * lchild; Tnode * rchild; }; Tnode * root; void insert(Tnode * p,char c) { if(root==NULL) { root=new Tnode; root->data=c; root->lchild=NULL; root-> 阅读全文
posted @ 2012-10-09 23:17 lishimin_come 阅读(127) 评论(0) 推荐(0) 编辑