Advertisement
Guest User

Untitled

a guest
May 27th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int a[100][100];
  6. struct arbore
  7. {
  8. int inf;
  9. arobre *st, *dr;
  10. };
  11.  
  12. arbore *p;
  13.  
  14. void creare(arobre *&p)
  15. [int x;
  16. cout<<"x=";cin>>x;
  17. if (x==0)
  18. p=NULL;
  19. else
  20. {
  21. p = new arbore;
  22. p->inf;
  23. cout<<"Se creeaza succ. stang al nodului"<<x<<" ";
  24. creare (p->st);
  25. cout<<"Se creeaza succ. drept al nodului"<<x<<" ";
  26. creare (p->dr);
  27. }
  28. void minim (arbore *p)
  29. {
  30. if (p!=NULL)
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement