二分查找,算法,C 测试通过。 int main() { int arr[] = {123,456,789,12,34,56,78,89,251,264,124,111,13}; int local = 0; local = erfenchazhao(arr,sizeof(arr)/4,251); printArr(arr,sizeof(arr)/4); printf("local: %d",local+1); return 0; }