Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. void imprime_POIs_az(ListL lista)
  2. {
  3. int cont=0;
  4. lista = lista->next;
  5. char nome_aux[SIZENOME];
  6. strcpy(nome_aux,"");
  7.  
  8. printf("\n\tLOCAIS\n\n");
  9. while(lista!=NULL)
  10. {
  11. if(strcmp(lista->local,nome_aux)!=0)
  12. {
  13. printf("\nLOCAL: %s\n\n\tNome: %s\n\tInformacao: %s\n\tHorario:%s\n",
  14. lista->local,
  15. lista->nome,
  16. lista->info,
  17. lista->horario);
  18. }
  19. else
  20. {
  21. printf("\n\tNome: %s\n\tInformacao: %s\n\tHorario:%s\n",
  22. lista->nome,
  23. lista->info,
  24. lista->horario);
  25. }
  26.  
  27. strcpy(nome_aux,lista->local);
  28. lista=lista->next;
  29. cont++;
  30. }
  31. printf("\n<<%d POIs imprimidos c sucesso.>>\n",cont);
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement