33,321
社区成员




if...
else...
void finditem(int number)
{
for(current=head;current!=NULL;current=current->next)
{//这个地方加括号啊!
if(number==current->value){
puts("the item has been found");
break; //找到后就退出循环
}
printf("can't find the item %d.\n",number);
}
}