system(\清屏*/ printf(\Please type in the number of the book you want to delete:\fflush(stdin);
scanf(\
for (i=0;i if(strcmp(number,library.book[i].number)==0) { printf(\图书号\\t图书名\\t作者名\\t出版社\\t出版日期\\t图书价格\\n\printf(\ry.book[i].name,library.book[i].author,library.book[i].publish,library.book[i].time,library.book[i].price); break; } } if (i!=library.count) { mbook book; printf(\请输入修改后此图书的信息\\n\ printf(\请输入图书号:\ scanf(\ printf(\请输入图书名:\ scanf(\ printf(\请输入作者名:\ scanf(\ printf(\请输入出版社:\ scanf(\ printf(\请输入出版时间:\ scanf(\ printf(\请输入该书的价格:\ fflush(stdin); scanf(\ strcpy(library.book[i].name,book.name); strcpy(library.book[i].number,book.number); strcpy(library.book[i].publish,book.publish); strcpy(library.book[i].author,book.author); strcpy(library.book[i].time,book.time); library.book[i].price=book.price; save(); } else printf(\ fflush(stdin); getchar(); } void main() { int a; FILE *fp; if((fp=fopen(\{ printf(\不能打开图书信息库\\n\fp=fopen(\ printf(\初始化图书信息库,初始化之后要重启程序\\n\library.count=0; fwrite(&library.count,sizeof(int),1,fp); fclose(fp); return; } fread(&library.count,sizeof(int),1,fp); fread(library.book,sizeof(library.book[0]),library.count,fp); fclose(fp); do { system(\ printf(\图书信息管理系统\\t\\t\\t\\t\\n\ printf(\printf(\图书信息录入\\n\printf(\图书信息浏览\\n\printf(\图书信息查询\\n\printf(\图书信息删除\\n\printf(\图书信息修改\\n\printf(\退出图书管理系统\\n\ printf(\ printf(\ fflush(stdin); scanf(\switch(a) { case 1: putin(); break; case 2: lookup(); break; case 3: search(); break; case 4: del(); break; case 5: update(); break; case 0: printf(\退出\\n\\n\ break; default: printf(\序号不对\\n\ } }while(a!=0); save(); }