[求助]链表结点查找的调用!
链表结点的查找!struct Addresslist *find(struct Addresslist *p,int n,char *string)
{
int flag=1;
while((p!=NULL))
{
switch(n)
{
case 1:flag=strcmp(string,p->name); break;
case 2:flag=strcmp(string,p->score); break;
}
if(flag==0)
return p;
else
p=p->next;
}
return NULL;
}
问题:这个函数在主函数中怎么样调用?