Advertisement
Guest User

sasdffg

a guest
Mar 30th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. struct nod{
  2. int info;
  3. nod *adr;
  4. };
  5. void Creare(nod *&p, int a)
  6. { nod *c=new nod;
  7. c->info=a;
  8. c->adr=NULL;
  9. p=c;
  10. }
  11. void Inserare(nod *&p, int a)
  12. { nod *c=new nod;
  13. c->adr=p->adr;
  14. c->info=a;
  15. p->adr=c;
  16.  
  17. }
  18. void Lista(nod *&q,int s[], int n)
  19. { Creare(q,s[1]);
  20. for (i=1;i<=n;i++)
  21. Inserare(q,s[i]);
  22.  
  23. }
  24. void CautaDublura()
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement