Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AdaugareFinal(nod * & prim, nod * & ultim, int x)
- {
- nod* aux = new nod;
- aux->info = x;
- if(prim == NULL)
- {
- aux->pre = NULL;
- aux->ant = NULL;
- prim = aux;
- ultim = prim;
- }
- else
- {
- aux->ant=ultim;
- ultim->pre=aux;
- aux->pre=NULL;
- ultim=aux;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement