二分查找
#include <stdio.h>int binsersarch(int num[],int n,int k)
{
}
int main()
{
int k,num[8]={6,12,23,28,31,45,51,99};
int is_found;
scnanf("%d",&k);
if_found=binsersarch(num,8,k);
if(is_found<0)
printf("%d is not found in array num.\n",k);
else
printf("%d is found in array num.\n",k);
return 0;
}
定义的函数使用递归怎么写程序呀?????