![]() |
|
#1
|
|||
|
|||
Looping problemHello everyone. I received some greatly appreciated help here before and now I am stuck and have another issue that I'm hoping someone will be able to help me with. I'm writing a simple integer calculator that supports addition, subtraction, multiplication, modulus, and division. I have to implement this by defining a class. The program is suppose to 1. request and accept a number, 2. apply the stored operation (of which the first is addition and after it should be whatever the user enters), 3. request and accept the next operation. When the operation entered is '=', the result should be printed and the accumulator reset, when '!' is entered as the operator, the same should happen except the program should now terminate.
Here is a sample run of what I'm trying to accomplish Code:
The issue I am having is when I run the program, the while loop is not continuing as it should and exits right away without op being '='. I have attached the files with the code I have so far because I didn't want to make this post any longer than it already is. Any help would be greatly appreciated. Also feel free to make any comments on anything else I could improve on. |
|||
|
#2
|
|||
|
|||
Re: Looping problemThe very first thing I saw was
CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: Looping problemI know it has been a long time but I just want to say thank you for your help
|
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache Web Server newbie problem | niss3 | Apache Web Server Forum | 1 | 13-Apr-2009 18:38 |
| Looping problem: Wont ask user to use program again | NeXus | C Programming Language | 1 | 10-Nov-2006 00:47 |
| Problem with looping. | rina | C Programming Language | 2 | 04-Oct-2005 06:37 |
| a significant problem after installing Xp | mohammad | Computer Software Forum - Windows | 10 | 09-Aug-2005 07:03 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The