实现二分法检索binary search 方法一 方法二 实现二分法检索binary search的完整源码(定义,实现,main函数测试) 方法一 int binarysearch1(const int *arr, int l, int r, int x); 方法二 int