#include<dos.h>
#include<conio.h>
#include<stdlib.h>
typedef char datatype;
int i,j,k;
#include"d:/function/2tree.h"
void main()
{TwoTree *headpoint,*p,*pp;
clrscr();
TwoTreeInitiate(&headpoint);
p=insertLeftTree(headpoint,'A');
insertRightTree(p,'G');
pp=p=insertLeftTree(p,'B');
insertRightTree(pp,'E');
p=insertLeftTree(p,'C');
insertRightTree(p,'F');
PrintTree(headpoint->leftchild,0);
printf("the pre: ");
PrePrint(headpoint->leftchild);
printf("\nthe mid: ");
MidPrint(headpoint->leftchild);
printf("\nthe last: ");
LastPrint(headpoint->leftchild);
getch();
}