SHARE
TWEET

Untitled

a guest May 19th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void bstItrPreOrderMap(BSTObject* objBst,MapFun pFunction,void *val)
  2. {
  3.     //printf("In inizio pre order");adtWriteToMonitor(pBSTObject->elem); fin qui ok arriva
  4.     ITRObject *objItr=(ITRObject*)itrConstruct(ConstructBSTPreOrderIterator(),objBst);
  5.     while(!itrTerminated(objItr))
  6.     {
  7.         BSTNode *wNode=itrElement(objItr);
  8.  
  9.         pFunction(wNode->elem,val);
  10.         itrSuccessor(objItr);
  11.     }
  12.     itrDestruct(objItr);
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top