【文章內(nèi)容簡介】
} fflush(stdin)。 getchar()。}:圖書信息刪除: void del() /*定義刪除函數(shù)*/{ int i。 char number[10]。 system(cls)。 /*清屏*/ printf(\n Please type in the number of the book you want to delete:)。 fflush(stdin)。 scanf(%s,number)。 for (i=0。i。i++) { if(strcmp(number,[i].number)==0)break。 } if (i!=) { for(。i。i++) { strcpy([i].name,[i+1].name)。 strcpy([i].number,[i+1].number)。 strcpy([i].publish,[i+1].publish)。 strcpy([i].author,[i+1].author)。 strcpy([i].time,[i+1].time)。 [i].price=[i+1].price。 } 。 } else printf(\n cannot found!\n)。 save()。 fflush(stdin)。 getchar()。}:圖書信息修改: void update()//修改圖書信息{ int i。 char number[10]。 system(cls)。 /*清屏*/ printf(\n Please type in the number of the book you want to change:)。 fflush(stdin)。 scanf(%s,number)。 f