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_length
is an integer representing the book's ID lengthId
is an integer representing the book's IDName_length
is an integer representing the book's name lengthName
is a string representing the book's nameAuthor_length
is an integer representing the book's author lengthAuthor
is a string representing the book's authorCategory_length
is an integer representing the book's Category lengthCategory
is a string representing the book's Category
The Visitor
class contains the following fields:
Id_length
is an integer representing the visitor's ID lengthId
is an integer representing the visitor's IDName_length
is an integer representing the visitor's name lengthName
is a string representing the visitor's nameVisit_date_length
is an integer representing the visitor's visit date lengthVisit_date
is a string representing the visitor's visit dateBorrowed_book_length
is an integer representing the book's borrowed book lengthBorrowed_book
is 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.