The Library Management System is a console-based application developed in C++. It offers a range of features to manage a library's collection of books, including adding, deleting, editing, searching, viewing, and saving books.
- Add Book: Add new books with details such as ISBN, title, author, edition, and publication.
- Delete Book: Remove a book from the library using its ISBN.
- Edit Book: Modify the details of an existing book.
- Search Book: Find a book by its ISBN and view its details.
- View All Books: Display a list of all books in the library.
- Save to File: Save the current list of books to a file.
- Load from File: Load a list of books from a file.
- Total Books Count: View the total number of books in the library.
- Search by Title: Search for books by their title.
- Sort Books by Title: Sort the books alphabetically by their title.
- Filter Books by Author: View books written by a specific author.
- Filter Books by Edition: View books of a specific edition.
- Unique ISBN Check: Ensure that each book has a unique ISBN.
- Delete All Books: Remove all books from the library.
- Edit All Books: Edit details for all books in the library.
- Exit: Exit the application.
The project consists of a single C++ source file (main.cpp
) that contains the implementation of the Library Management System. The key components are:
- Book Class: Represents a book and includes attributes like ISBN, title, author, edition, and publication. It provides methods to access and modify these attributes.
- Function Prototypes: Define operations such as adding, deleting, editing, searching, viewing, saving, and loading books.
- Main Function: Implements the main loop of the application, displaying a menu and handling user input to perform various operations.
- A C++ compiler (e.g., g++, clang++)
- Command-line interface (e.g., terminal, command prompt)
- Git installed on your system
-
Clone the Repository
git clone https://github.com/kknani24/library-management-system.git
-
Navigate to the Project Directory
cd library-management-system
-
Build the Application Compile the source code using a C++ compiler. For example, with
g++
:g++ -o library_management main.cpp
This command compiles
main.cpp
and creates an executable namedlibrary_management
. -
Run the Application Execute the compiled application:
./library_management
This will start the Library Management System, and the main menu will be displayed.
$ git clone https://github.com/kknani24/library-management-system.git
$ cd library-management-system
$ g++ -o library_management main.cpp
$ ./library_management
The Library Management System provides a user-friendly interface for managing a collection of books in a library. By following the steps outlined in this README, users can easily set up and use the application to perform various library management tasks.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.