|
|
@ -73,6 +73,26 @@ void ShowMainMenu()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//C2
|
|
|
|
//C2
|
|
|
|
|
|
|
|
void ShowLibInfo(const Book* book1, const Reader* reader1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Book* book = book1;
|
|
|
|
|
|
|
|
Reader* reader = reader1;
|
|
|
|
|
|
|
|
int bookNUm = 0, readerNUm = 0, mangerNUm = 0;
|
|
|
|
|
|
|
|
while (book != NULL)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
bookNUm++;
|
|
|
|
|
|
|
|
book = book->next;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
while (reader != NULL)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
readerNUm++;
|
|
|
|
|
|
|
|
reader = reader->next;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
printf("本图书馆共有藏书%d本,读者%d人\n", bookNUm, readerNUm);
|
|
|
|
|
|
|
|
printf("按任意键返回\n");
|
|
|
|
|
|
|
|
getchar();
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//C3
|
|
|
|
//C3
|
|
|
|
|
|
|
|
|
|
|
|