Hi Im really new at C programming so I came to ask.
Ive just created a calculator but it can only do equations like x+y, x^y and the like.
What I want is it to do more than one operation.
like x+y*z/a...
What can I do about it?
Hi Im really new at C programming so I came to ask.
Ive just created a calculator but it can only do equations like x+y, x^y and the like.
What I want is it to do more than one operation.
like x+y*z/a...
What can I do about it?
Go to Wikipedia, and read up on Reverse Polish Notation and/or infix notation. It's best if you work through your algorithm on paper or with your hands sans computer, before you try to code it up.
^
thanks ill try reading it.
that was just what i needed cause i dont know what it's called...