home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18441 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  839 b 

  1. Xref: sparky comp.lang.c:18441 comp.lang.c++:18041
  2. Newsgroups: comp.lang.c,comp.lang.c++
  3. Path: sparky!uunet!pmafire!news.dell.com!swrinde!elroy.jpl.nasa.gov!usc!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!cs.uiuc.edu!sparc0b!ctaylor
  4. From: ctaylor@cs.uiuc.edu (Conrad Taylor)
  5. Subject: Printing out a binary tree...???
  6. Message-ID: <BzC26E.L5y@cs.uiuc.edu>
  7. Sender: news@cs.uiuc.edu
  8. Organization: University of Illinois at Urbana-Champaign
  9. Date: Wed, 16 Dec 1992 03:39:49 GMT
  10. Lines: 19
  11.  
  12.  
  13.   I was wondering, does anyone have or know where I can find C/C++
  14. code that would print out a binary search tree as follows:
  15.  
  16.         6
  17.       /  \
  18.      5    7
  19.     / \  / \
  20.   4 nil nil 9
  21.  
  22. ?
  23.  
  24. Thanks in advance to all that reply to this post.
  25.  
  26. -Conrad
  27.  
  28. ps: Please e-mail me at either of the following
  29.     taylor1@wse.eecs.uic.edu or ctaylor@silver.lcs.mit.edu.
  30.  
  31.