A C++ console application for managing inventory items with colored output, file persistence, and real-time updates.
- ✅ Add new items with validation
- 🗑️ Delete existing items
- 🔍 Search specific items
- 📋 Display formatted item listings
- 💾 Automatic data persistence
- 🎨 Color-coded console interface
- Item Code (unique identifier)
- Price
- Dealer Information
- Category
- Date Added
- C++11 compatible compiler
- Windows terminal with ANSI color support
- Visual Studio Code (recommended)
#include <iostream>
#include <vector>
#include <fstream>
#include <unordered_map>
#include <algorithm>
#include <iomanip>
#include <sstream>- Clone the repository:
git clone https://github.com/ajnish-kumar-sahu/monthly-item-management.git
cd monthly-item-management- Compile the program:
g++ -std=c++11 Item.cpp -o Item.exe- Run the application:
./Item.exe-
Add Item
- Enter item code
- Specify price
- Add dealer information
- Set category
- Input date
-
Delete Item
- Remove items using their unique code
-
Print Item
- View detailed information of specific items
-
Display All Items
- See complete inventory in tabulated format
-
Save to File
- Persist data to items.txt
-
Load from File
- Restore data from items.txt
-
Exit
- Save and close application
Items are stored in items.txt using CSV format:
item_code,price,dealer_name,category,date_added
- Unique item code verification
- Positive price validation
- Required field checks
- File operation error handling
monthly-item-management/
├── Item.cpp
├── items.txt
└── README.md
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.