Re: Little help with basic C++
Well, from what you say, there is already a test that initiates the calculation. It should recalculate everytime that the loop is active and the user enters zero. As it recalculates, it should overwrite the variable that the result is assigned to with the new value. So, basically, I don't see your problem or don't understand what the bug is. Post some code, in code tags please and I'll see if I can find it. Or state exactly what is and isn't happening for you.
/*What does not kill us, makes us drink far too much caffeine*/