struct nodo
{
string dato; // direi meglio int ma devo beccare le parentesi...... DUBBIO!!!
nodo* left;
nodo* right;
};
*n = new nodo;
(*n)->dato = dato;
(*n)->left = NULL;
(*n)->right = NULL;
void costruisci(string &input, int i, nodo **n){
..
..
//faccio verifiche sull'input da file e ricorro:
costruisci(input, i, &((*n)->left));
costruisci(input, i, &((*n)->right));
else
cout << "INPUT NON VALIDO!" << endl;
Visitano il forum: Nessuno e 1 ospite