A simple yet functional Library Management System built using C++, MySQL, and OOPs concepts. This console-based application allows admins to manage books and students, while users (students) can borrow books if available.
-
π Admin Panel
- Add new books with quantity
- Register student IDs
-
π¨βπ Student Panel
- Borrow books by entering their Student ID
- View available books
-
π Database Integration
- All data stored and retrieved from MySQL database
-
π― Clean OOP structure
- Use of C++ classes, encapsulation, and modular structure
- Language: C++
- Database: MySQL
- Libraries Used: MySQL Connector/C++
- Platform: Windows (uses
<windows.h>
andSleep()
)
- MySQL Server & Workbench installed and running
- MySQL Connector/C installed
- A database named
cpp
with the following tables:
CREATE DATABASE cpp;
USE cpp;
CREATE TABLE lib (
Name VARCHAR(100),
Quantity INT
);
CREATE TABLE student (
Id VARCHAR(20)
);