Skip to content

library management system in c++#26

Merged
gitsofaryan merged 1 commit intogitsofaryan:mainfrom
Pushkrajpnaik:main
Oct 26, 2025
Merged

library management system in c++#26
gitsofaryan merged 1 commit intogitsofaryan:mainfrom
Pushkrajpnaik:main

Conversation

@Pushkrajpnaik
Copy link
Contributor

Explanation of Functionality:
Add Book: Adds a book as either Fiction or Non-Fiction based on user input.
Remove Book: Removes a book by its ID, freeing its allocated memory.
Borrow Book: Borrows a book by setting its status to "borrowed" if it is available.
Return Book: Returns a book by setting its status to "available."
Display All Books: Shows all books, including their type and availability.
The code uses polymorphism to handle different book types (Fiction and Non-Fiction) and stores books in a vector for easy management. The destructor ensures all dynamically allocated books are properly deleted.

@gitsofaryan gitsofaryan merged commit 2a16083 into gitsofaryan:main Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants