Hi, I need a function that will take a tree as argument and
return the number of ints that were typed and
a correct call.
would it just be preorder? like below. Please. Thanks
#include "t.h"
void preorder(tnode * t){
if (t == NULL) return;
cout << t->info <<endl;
preorder(t->left);
preorder(t->right);
}
call would be preorder(t).