Advertisement
Guest User

adasdsa

a guest
Sep 18th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. void ingresarAlFinal(lista &cab, string nombre, string ap1, string ap2, string id, int edad, bool estado){
  2. nodoEstudiante *nuevo;
  3. lista aux;
  4.  
  5. nuevo=crearNodo(nombre,ap1,ap2,id,edad,estado);
  6.  
  7. if(cab==NULL)
  8. cab=nuevo;
  9. else{
  10. aux=cab;
  11. while(aux->siguiente!=NULL) aux=aux->siguiente;
  12. aux->siguiente=nuevo;
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement