Calculator: Bedmas.

Nov 14, 2015 at 12:02am
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
Nov 14, 2015 at 12:04am
You need to implement the shunting-yard algorithm.
https://en.wikipedia.org/wiki/Shunting-yard_algorithm
Nov 14, 2015 at 12:31am
Thank you very much helios! I really can't understand it yet... too advanced for me right now.
Last edited on Nov 14, 2015 at 12:32am
Topic archived. No new replies allowed.