void print(node * p) { if (p == NULL) return; cout << "("; print(p->left); cout << p->data; print(p->right); cout << ")"; } void ind_print(node * p, int i) { if (p == NULL) return; ind_print(p->left, i + 1); cout << setw(i*3) << "" << p->data << "\n"; ind_print(p->right, i + 1); }