On line 8, does the 'Calculate' variable need to be stated on a separate line as: bool Calculate=true;
Doesn't sound like you had a problem with it, but I don't understand why not :S
I'm a beginner, so don't take my C++ as 100% correct.
@Krakow10
Technically, no, it doesn't need to be. You can assign true or false to integer values (after all, that's essentially what they are). Generally, it'll be interpreted that zero is false and anything non-zero is true. I'd wager that if you printed Calculate to the screen, it would show as one.
However, just because it's valid C++ doesn't mean it's good C++. It's a pretty bad way of coding it. It should, as your example suggested, really be expressed as a boolean. However, given that the trouble the OP is having I'm not sure they've quite grasped the correct use of data types yet.