A console-based Supermarket Management System built using C++, demonstrating Object-Oriented Programming, file handling, and real-world logic such as billing, stock management, and sales tracking.
This project is ideal for:
- 🎓 C++ students
- 💻 Beginners building portfolio projects
- 📂 File-handling based system practice
- 🚀 GitHub showcase projects
- 🔐 Secure admin login
- ➕ Add new products
- ✏️ Modify existing products
- ❌ Delete products
- 📦 Manage product stock
- 📋 View all products
⚠️ Low stock alerts- 📊 View complete sales report
- 📄 View available products
- 🔍 Search products by name or code
- 🛒 Buy multiple products
- 💰 Automatic bill calculation
- 📉 Discount handling
- 🧾 Date & time-based receipt generation
- 📁 File-based database (No MySQL needed)
- 🔄 Automatic stock updates after purchase
- 🧾 Transaction history saved
- 🧠 Clean menu-driven interface
Supermarket-Management-System/
│
├── SuperMarketManagementSystem.cpp # Main C++ source file
├── database.txt # Product database (auto-generated)
├── transactions.txt # Sales records (auto-generated)
├── README.md # Project documentation- 🟦 C++(Main programming language)
- 🧩 Object-Oriented Programming (OOP)(Used for modular and reusable code)
- 📁 File Handling(Stores product and sales data)
- ⚙️ STL (vector, algorithm, iostream)(I/O formatting)
- 🛠 GCC Compiler(Compiles the source code)
- 🖥 VS Code(Code editor)
Email: yujiitadori76678@gmail.com
Password: admin123@
Email: singhtomararpit2@gmail.com
Password: apxsingh2006@
-
Windows / Linux / macOS
-
C++ Compiler (GCC / MinGW)
-
VS Code or any C++ IDE
g++ SuperMarketManagementSystem.cpp -o supermarket
./supermarketg++ SuperMarketManagementSystem.cpp -o supermarket.exe
supermarket.exe====================================
|| WELCOME TO SUPERMARKET SYSTEM ||
====================================
1. ADMINISTRATOR
2. BUYER
3. EXIT
-
🔗 MySQL database integration
-
🖥️ GUI version (Qt / SFML)
-
📊 Monthly & yearly sales analytics
-
👥 Multiple admin roles
-
🧾 Export receipt as PDF
-
🔐 Password encryption
Contributions are welcome! 🚀
-
Fork this repository
-
Create a new branch
git checkout -b feature-name- Commit your changes
git commit -m "Added new feature"- Push to your branch and open a Pull Request
Arpit Singh Tomar
🎓 C++ Developer | Student | Open Source Learner
🔗 GitHub: https://github.com/Apxsingh
📧 Email: singhtomararpit2@gmail.com
- Create a GitHub repository
- Upload
SuperMarketManagementSystem.cpp - Create
README.md - Paste the above content
- Commit & push 🚀
If you want, I can also help you:
- Add badges (C++, License, Stars)
- Write a professional GitHub description
- Improve README design even more
Just tell me 👍