This project is a C++ based Library System designed to manage books, users, and their interactions through a simple yet effective interface. This project showcases object-oriented programming concepts like inheritance and encapsulation, and serves as a strong foundation for expanding into a more feature-rich library management tool.
Represents individual books in the library, storing details such as:
- Title
- Author
- Genre
- Year of publication
Manages the library's book collection, with functionality to:
- Add new books
- Remove existing ones
- Search for specific titles
A base class representing a general library user. Stores:
- User name
- Unique user ID
Represents teachers using the system. Includes attributes and methods specific to teachers.
Represents students using the system. Includes attributes and methods specific to students.
Acts as the entry point and user interface for the program. Enables interaction with the system’s classes and methods.
Make sure all required
.cpp
and.hpp
files are in the same directory.
Using g++
or any modern C++ compiler:
g++ -std=c++11 main.cpp book.cpp library.cpp libraryuser.cpp student.cpp teacher.cpp -o library-system
./library-system