La struttura che vedremo è la struttura standard di un’albero realizzato in C++.
struct nodo { char info; nodo *left; nodo *right; nodo (char a='\0', nodo *b=0, nodo *c=0){ //COSTRUTTORE info=a; left=b; right=c; } }; |
La struttura che vedremo è la struttura standard di un’albero realizzato in C++.
struct nodo { char info; nodo *left; nodo *right; nodo (char a='\0', nodo *b=0, nodo *c=0){ //COSTRUTTORE info=a; left=b; right=c; } }; |