From 0200c94d169663e09221be545bd58842bc13f92a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B1=9F=E6=A5=A0?= <87896121@qq.com> Date: Sun, 21 May 2023 10:23:27 +0800 Subject: [PATCH] C3 --- 图书管理系统.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/图书管理系统.c b/图书管理系统.c index c496dd2..d7ca4af 100644 --- a/图书管理系统.c +++ b/图书管理系统.c @@ -95,6 +95,18 @@ void ShowLibInfo(const Book* book1, const Reader* reader1) } //C3 +void ShowLibBook(Book* book1) +{ + Book* book = book1; + while (book != NULL) + { // \t :制表符 + printf("%d\t%s\t%s\t%s\t%d\n", book->iNum, book->acName, book->acAuthor, book->acPress, book->iAmount); + book = book->next; + } + printf("\n按任意键返回\n"); + getchar(); + return; +} //C4 -- 2.34.1