R> Ok, in computer science, we have to know about converting from postfix
R> to prefix, etc, but there's no manual around which explains this to me.
R> Only a few examples. Anyhow, can someone show me the answeres to the
R> following?
I dunno - never took anything about this. :-)
R> Convert these postfix to infix:
R> ABCD-/+
A+B/(C-D)
R> AB-C/D+
((A-B)/C)+D
R> AX+Y+UV-/
(A+X+Y)/(U-V)
R> AX+Y+U/V-
((A+X+Y)/U)-V
R> Convert these infix to postfix:
R> A*(S+Y/W)/(U-V)
ASY+W/*UV-/
R> A-B-C+W
AB-C-W+
R> A*(B-Y-X-E)/(F+G)
ABY-X-E-*FG+/
R> A-B/C-D*E/F/G
ABC/-DE*F/G/-
That's all just a guess, though... ;-)
--- Maximus/2 3.01
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)
|