syntax error at end of input是什么意思? 15
intmain(intargc,char*argv[]){BiThptr*T;inti;T=CreatTree();printf("\n");i=1;while(i){p...
int main(int argc, char *argv[])
{
BiThptr *T;
int i;
T=CreatTree();
printf("\n");
i=1;
while(i)
{
printf("\t1.二叉叔线索化\n");
printf("\t2.线索二叉树的插入\n");
printf("\t3.线索二叉树的删除\n");
printf("\t4.线索二叉树的中序输出\n");
printf("\t5.线索二叉树的线索输出\n");
printf("\t0.退出操作\n");
printf("\t请输入你的选择:");
scanf("%d",&i);
printf("------------------------------------");
switch(i)
{
case 1:PreThread(T);
printf("\t已实现二叉树的线索化\n");
printf("\1\1\1\1\1\n");
break;
case 2:Insert(T);
printf("\1\1\1\1\1\n");
break;
case 3:T=DeleteNode(T);
printf("\1\1\1\1\1\n");
break;
case 4:Inorder(T);
printf("\1\1\1\1\1\n");
break;
case 5:PrintIndex(T);
break;
case 0:exit(1);
default: printf("error\n\1please chioce other!");
}
}
system("PAUSE");
return 0;
} 展开
{
BiThptr *T;
int i;
T=CreatTree();
printf("\n");
i=1;
while(i)
{
printf("\t1.二叉叔线索化\n");
printf("\t2.线索二叉树的插入\n");
printf("\t3.线索二叉树的删除\n");
printf("\t4.线索二叉树的中序输出\n");
printf("\t5.线索二叉树的线索输出\n");
printf("\t0.退出操作\n");
printf("\t请输入你的选择:");
scanf("%d",&i);
printf("------------------------------------");
switch(i)
{
case 1:PreThread(T);
printf("\t已实现二叉树的线索化\n");
printf("\1\1\1\1\1\n");
break;
case 2:Insert(T);
printf("\1\1\1\1\1\n");
break;
case 3:T=DeleteNode(T);
printf("\1\1\1\1\1\n");
break;
case 4:Inorder(T);
printf("\1\1\1\1\1\n");
break;
case 5:PrintIndex(T);
break;
case 0:exit(1);
default: printf("error\n\1please chioce other!");
}
}
system("PAUSE");
return 0;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询