SecureShop is a console-based C++ shopping cart system developed as a semester project. It allows users to register, log in, browse different categories of items (Food, Clothes, and Supplies), add/remove items to/from the cart, and checkout securely. The project also demonstrates file handling, object-oriented programming, and basic data persistence in C++.
- β User Authentication (Sign Up / Log In)
- π Category-based Shopping (Food, Clothes, Supplies)
- π§Ύ Cart Management
- Add items
- Remove items
- View total cost
- πΎ File Handling
- Store user data and cart data in files
- π§ Object-Oriented Design
- Use of classes like
User,Item,Cart, etc.
- Use of classes like
- π Basic input validation and secure data flow
SecureShop/ βββ main.cpp βββ user.cpp βββ user.h βββ item.cpp βββ item.h βββ cart.cpp βββ cart.h βββ data/ β βββ users.txt β βββ items.txt β βββ transactions.txt βββ README.md
- Language: C++
- Concepts Used:
- Classes & Objects
- File I/O
- Inheritance & Polymorphism (optional)
- Arrays and basic string manipulation
- Clone the repository:
git clone https://github.com/yourusername/SecureShop.git Compile the code:
g++ main.cpp user.cpp item.cpp cart.cpp -o secureshop Run the executable:
./secureshop Make sure you have a data/ directory with required .txt files before running.