Help on order of opperations

Code help, language discussions, and software development advice.
Post Reply
S4ng Re4l
Registered User
Posts: 1
Joined: February 9th, 2005, 3:23 am

Help on order of opperations

Post 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.
"Goto, n.: A programming tool that exists to allow structured programmers to complain about unstructured programmers." "Linux is not portable." - Linus Torvalds "Yeah, microchips, but what... is it good for?" - an IBM senior enginner, 1968
Smartweb
Registered User
Posts: 622
Joined: January 15th, 2004, 2:11 am
Contact:

Post 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.
Post Reply