•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 402,000 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,438 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 963 | Replies: 1
![]() |
•
•
Join Date: Jun 2007
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
Ok, so I have been tinkering a bit in CPP. I was wanting to do a cash register type system because its kinda simple yet a good challenge for me.
I am thinking about good ol iostream for echoing all of the choices, and switch statements or elseifs for taking user input and moving to the right next category... for example: 1-food, 2-products... when 2 is hit, switch or elseif takes to like products(); which throws a system cls and brings another menu.
it is all making sense to me except for the holding data. what I don't know how to do, is if the cash register picks a particular item in a categorie... hold that item to the subtotal, somehow cache it for a total list later, and then continue with punching in items... how would one go about doing this. The subtotal wouldn't be hard, i think just add whatever the items price is to the already set subtotal, but listing selected items seems harder while still punching them in. ???
I am thinking about good ol iostream for echoing all of the choices, and switch statements or elseifs for taking user input and moving to the right next category... for example: 1-food, 2-products... when 2 is hit, switch or elseif takes to like products(); which throws a system cls and brings another menu.
it is all making sense to me except for the holding data. what I don't know how to do, is if the cash register picks a particular item in a categorie... hold that item to the subtotal, somehow cache it for a total list later, and then continue with punching in items... how would one go about doing this. The subtotal wouldn't be hard, i think just add whatever the items price is to the already set subtotal, but listing selected items seems harder while still punching them in. ???
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- NEED Help? Cash Register modules (Computer Science and Software Design)
- simple cash register (pos) problem - please help!! (VB.NET)
- VB cash register needed (VB.NET)
- Help please (Pascal and Delphi)
- Urgent help needed (Pascal and Delphi)
- Help finding ISBN services (PHP)
Other Threads in the C++ Forum
- Previous Thread: help with cdrom.h in linux
- Next Thread: Please help! validations



Linear Mode