#include
#include
#include
#define Rec 34L
#define Leaf -1
FILE *fp;
struct tnode {
struct tnode *left;
char node[30];
struct tnode *right;
};
struct tnode *talloc(void);
struct tnode *readtree(struct tnode *);
void writetree(struct tnode *);
void main(void)
{
struct tnode *root, *p, *q1, *q2;
int c;
if ((fp = fopen("dbase.dat","r")) == NULL) {
root = talloc();
printf("초기마디 ? "); scanf("%s", root->node);
root->left = root->right = NULL;
}
else {
root = readtree(root);