The project is a simple file-based system for managing library records in C++. The system stores book records and visitor records using a variable-length-field and delimiter record approach in the following order:
Id_Leangth Id Name_length Name Author_length Author Category_length Category|...
Id_Leangth Id Name_length Name Visit_Date_length Visit_Date Borrowed_Book_length Borrowed_Book|...
The Spaces is just for easy read, no spaces written in record.
The Book class contains the following fields:
Id_lengthis an integer representing the book's ID lengthIdis an integer representing the book's IDName_lengthis an integer representing the book's name lengthNameis a string representing the book's nameAuthor_lengthis an integer representing the book's author lengthAuthoris a string representing the book's authorCategory_lengthis an integer representing the book's Category lengthCategoryis a string representing the book's Category
The Visitor class contains the following fields:
Id_lengthis an integer representing the visitor's ID lengthIdis an integer representing the visitor's IDName_lengthis an integer representing the visitor's name lengthNameis a string representing the visitor's nameVisit_date_lengthis an integer representing the visitor's visit date lengthVisit_dateis a string representing the visitor's visit dateBorrowed_book_lengthis an integer representing the book's borrowed book lengthBorrowed_bookis a string representing the book's borrowed book
The project provides several operations for managing book and visitor records, including adding a new record, updating an existing record by ID or name, deleting a record by ID or name, searching for records by ID or name, and displaying top 5 records.