User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jun 2007
Posts: 4
Reputation: codercpp1 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
codercpp1 codercpp1 is offline Offline
Newbie Poster

Question C++ Cash Register - Help Getting Started

  #1  
Jul 3rd, 2007
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. ???
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Posts: 2,700
Reputation: WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold 
Rep Power: 14
Solved Threads: 219
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Maven

Re: C++ Cash Register - Help Getting Started

  #2  
Jul 4th, 2007
Look into arrays and loops. Therein lies your path to enlightenment...
Age is unimportant -- except in cheese
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 9:02 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC