Did you like how we did? Rate your experience!

4.5

satisfied

46 votes

How do I implement a library management system using a linked list ?

Library or any management system, take some time to think what is actually needed.1. You need an interface to provide user a way to read, write, delete and modify data. Data which is not volatile. 2. Ergo, you go for file handling. To store data which doesnt fades away when program is closed or restarted. While generally people prefer structure, you may go for linked-list.Only the data flow will vary if you opt to go for linked-list. when you go with structures,you may declare it as:struct people {}, struct books{}now in people there will be currentBookInPossessionCount, and in Books numberOfCopiesAvailable etc to keep track. in linked lists, the approach simply modifies, as you will have an pointer-array in both.If personX has borrowed bookA, then personX->bookInPossession[index] = and similarly, bookA->numberOfAvailableCopies & bookA.borrower[index] = Now for file-handling part, you just have to re-write objects to a file (updation), and the rest operations will follow as well. I hope I didnt complicated things!

100%
Loading, please wait...