摘要: /** *折半查找 */#include #include #define MAX_LENGTH 10int init_arrary[MAX_LENGTH];void findGetNumber(int key){ int i=0; int mid; int low = 0; int height = 0; int length = MAX_LENGTH; height = length; while(lowkey) { height = mid-1; } else if(init_arrary[mid]<key) { low = mid+1; } printf("low... 阅读全文