Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(cab==NULL)
- {
- if(nuevo->admin==true)
- {
- cab=nuevo;
- administrador=cab;
- administrador=administrador->siguiente;
- }
- else
- {
- cab=nuevo;
- cliente=cab;
- cliente=cliente->siguiente;
- }
- }
- else
- {
- aux=cab;
- while(aux!=NULL)
- aux=aux->siguiente;
- if(nuevo->admin==true)
- {
- administrador->siguiente=nuevo;
- administrador=administrador->siguiente;
- }
- else
- {
- cliente=nuevo;
- cliente=cliente->siguiente;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement