Skip to content

azbihi/Library-System-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 Library System

A simple Library Management System implemented in C++.
This system supports basic user and librarian functionalities such as:

  • Registering and logging in users
  • Viewing available books
  • Borrowing and returning books
  • Librarian features: adding/removing books, managing users

⚙️ Features

  • Object-Oriented Design (OOP)
  • File-based storage (no database needed)
  • Role-based access (User / Librarian)
  • Command-Line Interface (CLI)

🚀 Getting Started

1. Clone the Repository

git clone https://github.com/Hasan85-bin/LibrarySystem.git
cd LibrarySystem

2. Compile the Code

You can compile using g++:

g++ ".\main.cpp" ".\Core Classes\LoanManager.cpp" ".\Core Classes\Book.cpp" ".\Core Classes\User.cpp" ".\Utils\ini\iniReader\INIReader.cpp" ".\Utils\ini\ConfigManager.cpp" ".\Utils\ini\GlobalConfiguration.cpp" ".\Utils\ini\ini.c" ".\Utils\csv\CSVStorageManager.cpp" -o LibraryManager.exe

Or compile using any C++ IDE like Code::Blocks or Visual Studio.

3. Run the Program

./LibraryManager

👤 Default Users

You can create new users at runtime. However, there is a default librarian account for demo purposes:

  • Username: admin
  • Password: admin123

🗂 Project Structure

LibrarySystem/
├── Book.h / Book.cpp
├── User.h / User.cpp
├── Librarian.h / Librarian.cpp
├── LibraryManager.h / LibraryManager.cpp
├── main.cpp
└── ...

📌 Notes

  • All data (books, users, etc.) is stored in local text files.
  • Make sure the application has permission to read/write in its directory.
  • Tested on Linux; should work on Windows/Mac with minor adjustments.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors