int SearchNumber(int a[],int aLength,int number)//a为被找的数组,aLength为数组的长度,number为要查的数{ int i;
for (i = 0;i < aLength;i++) { if (a[i] == number) return i; } return -1;}