Skip to content

jackyphuti/console-inventory-cpp

Repository files navigation

Simple Console Inventory System

A basic C++ console application to manage inventory items. This project demonstrates fundamental C++ concepts such as classes, objects, vectors, and basic input/output operations.

Features

  • Add Item: Add new inventory items with a name, quantity, and price.
  • View Inventory: Display a list of all items in the inventory, including their total value.
  • Update Item Quantity: Modify the stock quantity for an existing item.
  • Remove Item: Delete an item from the inventory.
  • Calculate Total Value: Get the sum of the value of all items in stock (quantity * price).
  • User-Friendly Menu: Navigate through options easily.
  • Basic Input Validation: Handles common invalid numeric inputs.

How to Compile and Run

Prerequisites

  • A C++ compiler (e.g., g++).

Steps

  1. Clone the Repository (or download the files):

    git clone [https://github.com/YourUsername/simple-cpp-inventory-system.git](https://github.com/YourUsername/simple-cpp-inventory-system.git)
    cd simple-cpp-inventory-system
  2. Compile the source files: Open your terminal or command prompt in the project's root directory and run the following command:

    g++ main.cpp Item.cpp InventoryManager.cpp -o inventory_system
    • g++: The C++ compiler.
    • main.cpp Item.cpp InventoryManager.cpp: Your source code files.
    • -o inventory_system: Specifies the name of the executable output file.
  3. Run the application:

    ./inventory_system

    (On Windows, you might just type inventory_system.exe)

Project Structure

About

A basic console-based inventory management system in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages