摘要: #include <stdio.h>#define M 11/*** 有序数组二分法查找数值* low 最小值* mid 中间值* high 最大值* val 输入值* fount 判断值 1 找到 0 未找到*/void main(){ int low, mid, high, val, fount; static int arr[M] = {-12,-4,-1,0,11,22,44,67,89,90,111}; printf ("请输入一个数字:"); low = 0; ... 阅读全文
posted @ 2012-10-30 23:22 无本之木a 阅读(1608) 评论(4) 推荐(0) 编辑