Rather than a bunch of "if foo = x ... " statements, use a "case foo of" statement:
case oper of
You've already got a function that will read a number. (You used it to get num1.) Use it … Read More
Well, you know that the loop is [I]reading[/I] the numbers correctly (because you before tested it by just reading and printing the numbers, and they printed the correct numbers).
But now that you are doing something [I]to[/I] the numbers something is wrong.
May I suggest that num1 and temp_result should … Read More
It is hard for a beginner, but not quite "way too hard".
Let me think a bit and post back later. My brain hurts and I'm tired of going around in circles with you.
Some quick things first:
1. Your last thoughts seem like a good plan.
2. Please get … Read More
That, plus you may want to have a little patience. Fora like this aren't IM or Twitter; they are more like email, where you might have to wait hours or even days before a response. OTOH, it also means that you aren't limited to 140 characters, so posts can be … Read More