ramytamer

Untitled

May 28th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. void inShow(Tree *root,int currentDepth){
  2.         if(root && root->data.id != ~(1<<31)) {
  3.                 inShow(root->right,currentDepth+1);
  4.                 int i; for(i=0;i<currentDepth;i++) printf("\t");
  5.                 printf("Name: %s,ID: %3d::%p ",root->data.name, root->data.id,root);
  6.                 inShow(root->left,currentDepth+1);
  7.         }else
  8.                 printf("\n");
  9. }
Advertisement
Add Comment
Please, Sign In to add comment