Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hile (!(strcmp(E,"E"))){
- fgets(texto,500,fichero);
- ptr = strtok( texto,",");
- printf("%s\n",ptr);
- i=agregarListaEstudiante(&puntaListaEstudiantes,ptr);
- printf("%d",i);
- while( (ptr = strtok( NULL, "," )) != NULL ){
- printf( "%s\n", ptr );
- i=agregarListaRamos(&puntaListaRamos,ptr);
- }
- puntaListaEstudiantes->ramos=*puntaListaRamos;
- fscanf(fichero,"%s",E);
- }
- if (fclose(fichero)!=0)
- printf( "Problemas al cerrar el fichero\n" );
- printf("\n");
- imprimirListaEstudiante(puntaListaEstudiantes);
- printf("\n");
- imprimirListaRamos(&puntaListaEstudiantes->ramos);
Add Comment
Please, Sign In to add comment