converting a postfix expression to infix expression with paranthesis

Page 1 of 1

0 Replies - 2328 Views - Last Post: 13 September 2010 - 06:39 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=190186&amp;s=96dc6c191123c24048860a26afc29df7&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

#1 rohitpotter

Reputation: 0
• Posts: 2
• Joined: 13-September 10

converting a postfix expression to infix expression with paranthesis

Posted 13 September 2010 - 06:39 AM

hey people...can any1 help me with this question
how to convert a postfix expression to infix expression with paranthesis..

for eg:the original exp is: s=x+((y-d)/q-r*t).It's postfix xpression is:
sxyd-q/rt*-+=.Now i need to convert this xpression back to the original infix xpression with braces on.how to do it?
A theoretical explaination will be engh...
Thank u in advance...u can mail me at the id ***********@gmail.com

MOD EDIT: Topic closed for violating the rules. We have a tutorial, had you bothered to search, rather than expecting us to "email u teh c0dez".
[rules][/rules]

This post has been edited by JackOfAllTrades: 13 September 2010 - 06:45 AM
Reason for edit:: Removed email address

Is This A Good Question/Topic? 0

Page 1 of 1

 .related ul { list-style-type: circle; font-size: 12px; font-weight: bold; } .related li { margin-bottom: 5px; background-position: left 7px !important; margin-left: -35px; } .related h2 { font-size: 18px; font-weight: bold; } .related a { color: blue; }