小小鸟的林子

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年9月26日

摘要: #include <stdio.h>#include <stdlib.h>/*数组需预先排序*//*递归实现*/int find1( float a[], int start, int end, float tofind){ int center = (start + end)/2; if( start > end ) return -1; if ( a[center] == tofind ) return center; else if( a[center] > tofind ) find1( a, start, center-1, tofind); el 阅读全文
posted @ 2011-09-26 10:13 林中鸟 阅读(214) 评论(0) 推荐(0)