Skip to content

Vidhi788/Library-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Library Management System (CLI)

This is a simple Command-Line Interface (CLI) Library Management System written in C++.

Note: This project does not include file handling features. Data is stored in memory only during program execution and will be lost once the program exits.

#Features

  • Add books with Title, Author, and Book ID
  • Update existing book details
  • Search for books by Book ID
  • Issue and return books
  • Display all books with their status (Issued / Available)
  • Handles edge cases like:
    • Duplicate Book IDs
    • Issuing an already issued book
    • Returning a book that is not issued
    • Searching or updating a non-existent book

Concepts Used

  • Classes and Objects (OOP)
  • Encapsulation (keeping book list private inside Library class)
  • Constructors (to initialize Book objects)
  • Vectors (dynamic storage of books)
  • Strings (string class for title and author)
  • Loops (for loops for searching and displaying books)
  • Conditional Statements (if/else for validations)
  • Functions / Methods (separate methods for each operation)
  • Menu-driven program with switch-case

How to Run

  1. Compile the code using a C++ compiler, for example:
    g++ LibraryManagementSystem.cpp -o library

About

Simple Library Management System in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages