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.
- 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.
- A C++ compiler (e.g., g++).
-
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 -
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.
-
Run the application:
./inventory_system
(On Windows, you might just type
inventory_system.exe)