Guest User

Untitled

a guest
Aug 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. hile (!(strcmp(E,"E"))){
  2. fgets(texto,500,fichero);
  3. ptr = strtok( texto,",");
  4. printf("%s\n",ptr);
  5. i=agregarListaEstudiante(&puntaListaEstudiantes,ptr);
  6. printf("%d",i);
  7. while( (ptr = strtok( NULL, "," )) != NULL ){
  8. printf( "%s\n", ptr );
  9. i=agregarListaRamos(&puntaListaRamos,ptr);
  10. }
  11. puntaListaEstudiantes->ramos=*puntaListaRamos;
  12. fscanf(fichero,"%s",E);
  13. }
  14. if (fclose(fichero)!=0)
  15. printf( "Problemas al cerrar el fichero\n" );
  16.  
  17.  
  18.  
  19. printf("\n");
  20. imprimirListaEstudiante(puntaListaEstudiantes);
  21. printf("\n");
  22. imprimirListaRamos(&puntaListaEstudiantes->ramos);
Add Comment
Please, Sign In to add comment