Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void inShow(Tree *root,int currentDepth){
- if(root && root->data.id != ~(1<<31)) {
- inShow(root->right,currentDepth+1);
- int i; for(i=0;i<currentDepth;i++) printf("\t");
- printf("Name: %s,ID: %3d::%p ",root->data.name, root->data.id,root);
- inShow(root->left,currentDepth+1);
- }else
- printf("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment