| thundemanx (2) | |
|
I need a program that takes in a postfix expression and turns it into prefix form.. I know how to manually do that .. But how to make a program for that ... I believe we'll have to use stacks or lists for this ... But all my attempts failed miserably .. Plz. help. | |
|
|
|
| ajh32 (85) | |
| Please write down a simple example of what you understand is needed. | |
|
|
|
| ResidentBiscuit (2216) | |
| I'd just create an expression tree, and from that you can pull out prefix, postfix, and infix whenever you want. | |
|
|
|