\n");Р?fprintf(fp,"\n");Р?fprintf(fp,"\n**************************************************\n");Р?fprintf(fp,"\n编号\t\t书名\t\t作者\t\t出版社\t\t出版时间\t\t价格\t\t状态\n");Р?fprintf(fp,"\n");Р?fprintf(fp,"%s\t%s\t%s\t%s\t%s",p->number,p->bookname,p->author,p->publish,p->time);Р?fprintf(fp,"\t\t%.2f",p->price);Р?fprintf(fp,"\t\t%s",p->status);Р?fprintf(fp,"\n");Р?fclose(fp);Р?printf("信息已保存!!!");Р}Рlink *findnumber(link *head)Р{Рchar key[100];Рlink *h,*t1=NULL;Рprintf("请输入图书的编号:");Рgetchar();Рgets(key);Рfor(h=head;h!=NULL;h=h->next)Р{Р if(strcmp(key,h->number)==0)Р {Р t1=h;Р break;Р }Р}Рreturn t1;Р} Рlink *findboookname(link *head)Р{Рchar key[100];Рlink *h,*t2=NULL;Рprintf("请输入图书的书名:");Рgetchar();Рgets(key);Рfor(h=head;h!=NULL;h=h->next)Р{Р if(strcmp(key,h->bookname)==0)Р {Р t2=h;Р break;Р }Р}Рreturn t2;Р}