Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool ntiNivo (int n, cvor *root)
- {
- if (root!=NULL)
- {
- if (n!=0)
- {
- ntiNivo(n-1, root->l);
- ntiNivo(n-1, root->r);
- }
- else printf ("%d\n", root->val);
- return true;
- }
- return false;
- }
- void ispisi ()
- {
- int nivo=0;
- while (ntiNivo(nivo, root)) nivo++;
- }
Advertisement
Add Comment
Please, Sign In to add comment