Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int a[100][100];
- struct arbore
- {
- int inf;
- arobre *st, *dr;
- };
- arbore *p;
- void creare(arobre *&p)
- [int x;
- cout<<"x=";cin>>x;
- if (x==0)
- p=NULL;
- else
- {
- p = new arbore;
- p->inf;
- cout<<"Se creeaza succ. stang al nodului"<<x<<" ";
- creare (p->st);
- cout<<"Se creeaza succ. drept al nodului"<<x<<" ";
- creare (p->dr);
- }
- void minim (arbore *p)
- {
- if (p!=NULL)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement