/Bookshop-Management-System

This is a simple mini book management system implemented in C++.

Primary LanguageC++MIT LicenseMIT

Bookshop-Management-System

This is a simple mini book management system implemented in C++.

Welcome to the Bookshop Management System repository! This project provides a simple command-line interface for managing a bookshop's collection of books. You can perform various operations such as adding, updating, deleting, searching, and displaying book information. The data is stored in a text file named books.txt.

Features

  • Show Data: Display details of all the books in the collection.
  • Add Book: Add one or more books to the collection, including book name, author, ID, and price.
  • Search Data: Search for a book by its unique ID and display its details.
  • Update Book: Update details of a specific book using its ID.
  • Delete Book: Delete a book from the collection based on its ID.

Getting Started

To get started with the Bookshop-Management-System project, follow these steps:

  1. Clone the Repository:

    Clone this repository to your local machine using the following command:

    git clone https://github.com/umairinayat/Bookshop-Management-System.git
  2. Navigate to the Project Directory:

    Change your current directory to the project directory:

cd Bookshop-Management-System
  1. Compile the Program:

    Compile the program using your preferred C++ compiler. Here, we'll use g++:

g++ main.cpp -o bookshop_management_system
  1. Run the Executable:

    Now you can run the compiled executable

./bookshop_management_system

Usage

Upon running the program, you will be presented with a menu where you can choose different actions to perform:

  • Show Data: Display details of all the books in the collection.
  • Add Book: Add one or more books to the collection.
  • Search Data: Search for a book using its ID and display its details.
  • Update: Update details of a specific book.
  • Delete: Delete a book from the collection.

Simply follow the prompts and input the required information to perform the desired action.

Data Storage

The book data is stored in a text file named books.txt. Each line in the file corresponds to a single book and contains the book's name, author, ID, and price, separated by tabs.

Contributing

Contributions to this project are welcome! If you find any bugs or have suggestions for improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.