error C2198: 'insert' : too few actual parameters具体怎么改?
我的函数定义是这样的: void insert(NODE *head,struct books book)//插入信息{
NODE *new,*front,*current;
new=(NODE*)malloc(LEN);
front=(NODE*)malloc(LEN);
current=(NODE*)malloc(LEN);
PF("请输入你想要插入的书籍信息:");
SF("%d\t%s\t%s\t%d\t%s\n",new->book.booknum,new->book.bookname,new->book.publish,new-> book.price,new->book.authorname);
current=head;
while((current!=NULL)&&(current->book.price<new->book.price))
{
front=current;
current=current->next;
}
new->book.booknum=book.booknum;
new->book.price=book.price;
strcpy(new->book.publish,book.publish);
strcpy(new->book.bookname,book.bookname);
strcpy(new->book.authorname,book.authorname);
new->next=current;
if(current==head)
head=new;
else
front->next=new;
}
最后主菜单中的调用括号里应该怎么写?即case 4: insert(?);break; “ ?”该写什么?