/Total book number is n 。Р?fclose(fp);Р//?printf("Total book number is %d",n);Р void print();print();Р?printf("\n\n\t\t请输入要删除的书的编号:\t");Р?scanf("%d",&h);Р?int k,u,v;Р?for(k=0;k<n;k++)Р?{Р if(h==L->book[k].idnumber)Р {u=k;break;}Р?}Р?u++;Р?for( v=u;v<n;v++ )Р?{Р L->book[v-1]=L->book[v];Р?}Р?n--;Р?L->last=n;Р printf("\n书名\t购买日期\t作者\t编号\t价格\t出版社\t备注\n\n");Р?fp=fopen("E:\\bookfile","w+");Р?int k1=0,k2,k3;Р//?printf("%d",n);Р?while(k1!=n)Р?{Р printf("\n");Р printf("%s\t",L->book[k1].name);Р printf("%d\t\t",L->book[k1].data);Р printf("%s\t",L->book[k1].author);Р printf("%d\t",L->book[k1].idnumber);Р printf("%d\t",L->book[k1].price);Р printf("%s\t",L->book[k1].publish);Р printf("%s\n",L->book[k1].remarks);Р k1++;Р fwrite(&L->book[k1],sizeof(BOOK),1,fp);Р?}Р printf("\n\n\t\t成功删除。\n");Р?fclose(fp);