Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct nod{
- int info;
- nod *adr;
- };
- void Creare(nod *&p, int a)
- { nod *c=new nod;
- c->info=a;
- c->adr=NULL;
- p=c;
- }
- void Inserare(nod *&p, int a)
- { nod *c=new nod;
- c->adr=p->adr;
- c->info=a;
- p->adr=c;
- }
- void Lista(nod *&q,int s[], int n)
- { Creare(q,s[1]);
- for (i=1;i<=n;i++)
- Inserare(q,s[i]);
- }
- void CautaDublura()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement