ld,id);Р return bt;Р?}Р}Рvoid main()Р{Р?btree position;Р?int c,len;Р?char id[18];Р?btree root;Р?char name[11];Р?char address[21];Р?char phone[12];Р?root=NULL;Р?system("cls");Р?do//显示主菜单Р?{Р printf("----------------- Menu ---------------\n");Р printf("------------------------------------------\n");Р printf("\t\t1.插入\n");Р printf("\t\t2.删除\n");Р printf("\t\t3.显示\n");Р printf("\t\t4.查找\n");Р printf("\t\t5.修改\n");Р printf("\t\t6.录入\n");Р printf("\t\t7.退出\n");Р printf("------------------------------------------\n");Р printf("\t\t请按1-7数字选择:\n");Р scanf("%d",&c);Р?Р?switch(c)Р?{Р case 1:printf("请输入要输入要插入的身份证号码:\n");Р scanf("%d,id");Р len=strlen(id);Р if(len==18)Р insert(&root,id);Р elseР printf("输入号码不是18位,不能输入,请重新选择:\n");Р break;Р case 2:if(root)Р {Р printf("请输入要输入要删除的身份证号码:\n");Р scanf("%d,id");