Updated book and print data out

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

View File

@ -1,25 +0,0 @@
My Third Book
Zero 1
000-000-111
My Fouth Book
1 Zero
111-000-000
My Fifth Book
2 Zero
222-000-000My Third Book
Zero 1
000-000-111
My Fouth Book
1 Zero
111-000-000
My Fifth Book
2 Zero
222-000-000My Third Book
Zero 1
000-000-111
My Fouth Book
1 Zero
111-000-000
My Fifth Book
2 Zero
222-000-000

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);
}
}