home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.disi.unige.it
/
2015-02-11.ftp.disi.unige.it.tar
/
ftp.disi.unige.it
/
pub
/
.person
/
CataniaB
/
teach-act
/
esempi
/
Tipi_di_dato
/
Alberi
/
maintree.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-11
|
336b
|
19 lines
#include <stdio.h>
#include "trees.h"
main()
{
tree T;
tree T1;
tree T2,T3;
T=maketree(4,maketree(2,emptytree(),emptytree()),
maketree(9,maketree(2,emptytree(),emptytree()),emptytree()));
T1=maketree(90,emptytree(),emptytree());
T2=maketree(45,emptytree(),emptytree());
append(2,T,T1,T2);
bfs(T);
copy(T,&T3);
bfs(T3);
}