Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   C (http://www.domainnameforum.org/forumdisplay.php?f=124)
-   -   Converting infix expression to postfix expression (including some functions) (http://www.domainnameforum.org/showthread.php?t=150894)

C++ 03-20-2011 05:13 PM

Converting infix expression to postfix expression (including some functions)
 
I have found numerous examples involving only arithmetic operations but mine requires to deal with functions - min(x, y), max(x, y), sqrt(x), abs(x), fact(x). What I don't understand is how my program can interpret those functions and set the precedence for them. Examples: 4 + 5 -> 4 5 + abs(-5)...


All times are GMT -4. The time now is 07:30 AM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.