二分查找,在长度为len的数组arr中,查找关键字key,找到返回下标,没有找到返回-1 int BinSerch(int arr[],int len,int key) { int low=0; int high=len-1;