求帮忙,帮忙把调用函数写出来
void MainMenu(){
printf("---------------------------------------------------\n");
printf(" Main Menu \n");
printf("---------------------------------------------------\n");
printf(" 1----sort \n");
printf(" 2---insert \n");
printf(" 3---delete \n");
printf(" 4---resort \n");
printf(" 5----exit \n");
printf("---------------------------------------------------\n");
printf("please make your choice from 1~5:");
}
main()
{int i,d;
for(i=1;i<=5;i++)
{MainMneu();
scanf("%d",&d);
switch(d)
{ case 1:sort();break;
case 2:insert();break;
case 3:delete();break;
case 4:resort();break;
case 5:break;
default:printf("wrong!");break;
}
}
}
帮忙把中间sort(排序)insert(插入一个数)delete(删除一个数)resort(反序)这几个调用函数写出来吧,小弟感激不尽!