Updated book and print data out

This commit is contained in:
2020-08-02 15:06:16 +07:00
parent ba3a1df3a4
commit 443a30a5d4
2 changed files with 4 additions and 28 deletions

View File

@@ -31,7 +31,7 @@ int main()
// add book data
add_book_data();
// display the books
display();
@@ -230,8 +230,9 @@ void print_data(BOOK *book)
while (temp->next != NULL)
{
temp = temp->next;
printf("\nBook title: %s\n", temp->title);
printf("\n\n============ %s ============\n", temp->title);
printf("Book title: %s\n", temp->title);
printf("Book title: %s", temp->title);
printf("Book author: %s\n", temp->author);
printf("Book isbn: %s", temp->isbn);
}
}