Page 1 of 1

Help on order of opperations

Posted: February 9th, 2005, 3:27 am
by S4ng Re4l
I have to write a program in C++ that takes in an equation from the Command Line and outputs that answer but I cant figure how to work in the order of opperations.... Any help is appreciated.

Posted: February 10th, 2005, 3:52 pm
by Smartweb
Do you mean it takes an equation (eg. x^2-5x+6=0) or an expression (eg. 2+3). Either way, I should be able to help you because I'm almost done with an expression parser in C# (that could be fairly easily converted to C++) that would solve most of your problems.