intnum[5]={3,1,5,7,5}; //调用冒泡排序函数,对数组进行排序 bubbleSort(num,5); //调用折半查找函数,并将返回值赋值给n intn=Czhao(num,5,5); //打印角标 printf("要查找的元素的角标为:%d\n",n); return0; }