TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ROSE
from: DARIN MCBRIDE
date: 1997-11-15 14:08:00
subject: Postfix/Infix

 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.