Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. void Listado(lista &cab, string especialidad)
  2. {
  3. lista aux;
  4. nodoLibro *auxl, *temp;
  5. bool band=false;
  6.  
  7. if(cab==NULL)
  8. cout << "Lista vacia" << endl;
  9. else
  10. {
  11. aux=cab;
  12. while(aux!=NULL)
  13. {
  14. auxl=aux->libro;
  15. while(auxl!=NULL)
  16. {
  17. if(auxl->especialidad==especialidad)
  18. {
  19. if(temp==NULL)
  20. temp=auxl;
  21. else
  22. {
  23.  
  24. }
  25. }
  26. auxl=auxl->siguiente;
  27. }
  28. aux=aux->siguiente;
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement