Quote Originally Posted by Salem View Post
> int cmp1=strcmp((root->left)->data,test);// error code
> int cmp2=strcmp((root->right)->data,test);
Perhaps just compare it with
root->data

and leave the ->left and ->right for the next recursive call.
I don't no exactly why I didint try it but I am still new to the ->data and ->left and right. Like exactly what it means. Sometimes i even put root.data thinking its the actually data in that root (which i think is correct as i type this), but I think I'm Suppose to use root->data to find the actually data that is in root.