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