![]() |
Point-of-Sale
Hello! I'm kind of new to programming so please help. I have been working on a program that would present a menu so the user can choose what they wanted. Every time they chose something the program would repeatedly display the menu as the sale is being totaled. Currently, when I try to run my program it shows a never ending loop.
:
#include <iostream.h> // included headingI'm not completely finished with it. Could someone tell me what I'm doing wrong? |
First try to put your switch statement inside the loop.:)
|
I don`t like the int type of choice. Wouldn`t it be better being a char.
Quote:
Also the function totalsale is useless the way it is. It would be better to put all the switch statement inside the function and then output the sale statement. Good luck.:) |
Okay, with a few adjustments, I got it.
:
#include <iostream.h> // included heading |
| All times are GMT -5. The time now is 1:50 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC