home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / NARY / NARY.XPC < prev   
Text File  |  1995-03-08  |  346b  |  14 lines

  1. Printing the original tree in prefixed notation:
  2. /|*|+|8|2|+|2|4|-|7|5|
  3.  
  4. Tree with calculated subtree replaced: 
  5. /|*|10|+|2|4|-|7|5|
  6. Tree with calculated subtree replaced: 
  7. /|*|10|6|-|7|5|
  8. Tree with calculated subtree replaced: 
  9. /|60|-|7|5|
  10. Tree with calculated subtree replaced: 
  11. /|60|2|
  12. Now the tree contains the result only:
  13. 30|
  14.