This repository contains a C++ implementation of a store system, designed to manage user accounts, seller accounts, inventory, and store operations. It provides functionalities for users to purchase products, sellers to manage their inventory, and administrators to oversee the system.

-
Accounts:
- Account: Base class representing user accounts. It encapsulates a username and password and provides authentication functionality.
- UserAccount: Derived class representing user accounts. It includes a balance attribute for managing user finances.
- SellerAccount: Derived class representing seller accounts. It enables sellers to view users' balances.
-
Inventory:
- Product: Class representing products available in the inventory. It includes attributes such as ID, name, category, price, and quantity.
- Inventory: Manages the collection of products. It provides methods for adding, removing, and viewing products, as well as analyzing stock trends.
-
Store:
- Store: Combines functionalities related to inventory and accounts management within the store.
-
Accounts Management:
- Users and sellers can create accounts with unique usernames and passwords.
- Users can check their balance and update it accordingly.
- Sellers can view users' balances.
-
Inventory Management:
- Sellers can add products to their inventory, specifying product details like name, category, price, and quantity.
- Sellers can remove products from their inventory.
- Sellers can view their current stock of products.
- Inventory allows analyzing stock trends to recommend business tactics.
-
Store Operations:
- The Store class integrates accounts and inventory functionalities for comprehensive store management.
To compile and execute the store system:
- Ensure you have a C++ compiler installed on your system.
- Clone the repository to your local machine.
- Navigate to the directory containing the source files.
- Compile the source files using your preferred C++ compiler.
- Run the executable generated after compilation.
Example commands (using g++ compiler): For multifile:
g++ main.cpp store.cpp inventory.cpp accounts.cpp product.cpp
./a.out
For singleFile:
g++ main.cpp
./a.out
Contributions to this repository are welcome. If you find any bugs or have suggestions for improvements, feel free to submit a pull request or open an issue.
Feel free to expand this documentation further based on your project's specific requirements and include details about additional features, usage examples, or any other relevant information.