This is a C++ based Library Management System that manages books, users, borrowing, returning, reservations, and fines. It supports three types of users:
- Students (max 3 books, 15-day loan period, fines applicable)
- Faculty (max 5 books, 30-day loan period, no fines)
- Librarians (cannot borrow, can manage books and users)
The system persists data in CSV files and includes features like book searching, reservation system, and fine management.
- Book management (add/remove books)
- User management (add/remove users)
- Borrowing and returning books
- Book reservation system
- Fine calculation and payment (for students)
- Search functionality
- Persistent storage in CSV files
- C++11 compatible compiler (g++, clang++, etc.)
- Standard C++ libraries
main.cpp- Main source code filebooks.csv- Stores book datausers.csv- Stores user databorrowings.csv- Stores borrowing recordsfines.csv- Stores fine records
To compile the program, use one of the following commands:
g++ main.cpp -o library_management_system- After compilation, run the program using:
library_management_system.exe-
The program will:
- Load existing data from CSV files if present
- Create default data if no CSV files exist
- Present a login prompt
-
To login:
- Enter a user ID (e.g., "S1" for student, "F1" for faculty, "L1" for librarian)
- Type "exit" to quit the program
Further details on the functionality of the program can be found in Documentation.md