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
- Classes and Objects (OOP)
- Encapsulation (keeping book list private inside
Libraryclass) - Constructors (to initialize
Bookobjects) - Vectors (dynamic storage of books)
- Strings (
stringclass for title and author) - Loops (
forloops for searching and displaying books) - Conditional Statements (
if/elsefor validations) - Functions / Methods (separate methods for each operation)
- Menu-driven program with
switch-case
- Compile the code using a C++ compiler, for example:
g++ LibraryManagementSystem.cpp -o library