完善系统功能

lll
孙艺哲 2 years ago
parent 89fffbbb75
commit 3edd7f021b

@ -273,3 +273,27 @@ Book* DealoldBook(Book* book1)
return book1; return book1;
} }
void foundBook(Book* book1)
{
Book* book = book1;
printf("输入要查找的书的id:");
int id;
scanf("%d", &id);
getchar();
while (book != NULL)
{
if (id == book->iNum)
{
printf("该书的信息如下:\n");
printf("%d\t%s\t%s\t%s\t%d\n", book->iNum, book->acName, book->acAuthor, book->acPress, book->iAmount);
printf("按任意键返回\n");
getchar();
return;
}
book = book->next;
}
printf("没有找到该书!\n");
printf("按任意键返回\n");
getchar();
return;
}

Loading…
Cancel
Save