关于C语言程序设计题
#include
#define N 15
void sort(int *p)
{
int i,j,temp;
for(i=0;i*(p+mid))
high=mid-1;
else
low=mid+1;
mid=(low+high)/2;
}
if(low<=high)
return mid+1;
else
return 0;
}
void main()
{
int *p,number[N],i,key,pos;
//输入15个整数
for(i=0;i全部
#include
#define N 15
void sort(int *p)
{
int i,j,temp;
for(i=0;i*(p+mid))
high=mid-1;
else
low=mid+1;
mid=(low+high)/2;
}
if(low<=high)
return mid+1;
else
return 0;
}
void main()
{
int *p,number[N],i,key,pos;
//输入15个整数
for(i=0;i \n");
else
printf("%d是数组中第%d个元素的值。\n",key,pos);
}。收起