这是我编的一个程序中的一段,意思如下,麻烦帮我看看,我头痛,我指针用的不好
#include<stdio.h>
char *st1[8]={"99070101","99070102","99070103","99070104","99070105","99070106","99070107"};
int SeqSearch(char *st1[8],char k[9])
{
int i;
char *p;
p=st1[8];
for(i=0;i<8;i++)
if(*(p+i)==k[9])
return(i);
return(-1);
}
int main()
{
int k;
char ch[9];
printf("input your search number:\n");
scanf("%s",&ch[9]);
k=SeqSearch(*st1[8],ch[9]);
if(k+1)
{
printf("\t number\n");
printf("\t%s\n",st1[k]);
}
else
printf("NOT FIND!\n");
}