Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ingresarAlFinal(lista &cab, string nombre, string ap1, string ap2, string id, int edad, bool estado){
- nodoEstudiante *nuevo;
- lista aux;
- nuevo=crearNodo(nombre,ap1,ap2,id,edad,estado);
- if(cab==NULL)
- cab=nuevo;
- else{
- aux=cab;
- while(aux->siguiente!=NULL) aux=aux->siguiente;
- aux->siguiente=nuevo;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement