Calculator: Bedmas.

Hello,

I am an 11 year old beginner and trying to finish my first project- the calculator. It functions but cannot do more than one equation at a time or cannot perform the bedmas. What do I have to do? Please help. I am reading Sams: Teach Yourself C++ Seventh Edition but can't find the answer to what I'm looking for. Thank you in advanced! -Lance
You need to implement the shunting-yard algorithm.
https://en.wikipedia.org/wiki/Shunting-yard_algorithm
Thank you very much helios! I really can't understand it yet... too advanced for me right now.
Last edited on
Topic archived. No new replies allowed.