How yinch10/ldcw6123-shopee-voucher-system works
A small interactive C++ voucher CLI: users can list vouchers, filter by category, and claim by ID. main.cpp seeds an in-memory voucher collection and dispatches menu choices to these operations; claiming updates the voucher’s claimed status. All behavior is implemented in the single sampled source file.
Main entry points: main.cpp Menu loop
Components 7
Other components
- CLI user
- Menu loop
main.cpp - Voucher collection
main.cpp - Menu display
main.cpp - List vouchers
main.cpp - Category filter
main.cpp - Claim voucher
main.cpp
Connections 10
- CLI user → Menu loop: enters choices
- Menu loop → CLI user: prompts and reports
- Menu loop → Voucher collection: initializes
- Menu loop → Menu display: calls
- Menu loop → List vouchers: dispatches
- Menu loop → Category filter: dispatches
- Menu loop → Claim voucher: dispatches
- List vouchers → Voucher collection: reads
- Category filter → Voucher collection: filters
- Claim voucher → Voucher collection: reads and updates