home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
jËzyki_programowania
/
amigae
/
e_v3.2a
/
src
/
guide
/
tree-use.e
< prev
next >
Wrap
Text File
|
1977-12-31
|
313b
|
20 lines
MODULE '*tree'
PROC main()
DEF t:PTR TO integer_tree
NEW t.create(10)
t.add(-10)
t.add(3)
t.add(5)
t.add(-1)
t.add(1)
WriteF('t has \d nodes, with \d leaves: ',
t.nodes(), t.leaves())
t.leaves(TRUE)
WriteF('\n')
WriteF('Contents of t: ')
t.print()
WriteF('\n')
END t
ENDPROC