|
|
|
@ -20,18 +20,19 @@ void menu(void){
|
|
|
|
|
printf("Choisissez votre session : ");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
VilleIUT** loadIUT(VilleIUT** tiut, int* tlogi){
|
|
|
|
|
int loadIUT(VilleIUT** tiut){
|
|
|
|
|
FILE* f=fopen("Etudiants.bin","rb");
|
|
|
|
|
if(f==NULL){
|
|
|
|
|
perror("fopen");
|
|
|
|
|
exit(errno);
|
|
|
|
|
}
|
|
|
|
|
MaillonDep* m;
|
|
|
|
|
fread(tlogi,sizeof(int),1,f);
|
|
|
|
|
for(int i=0; i<*tlogi; i++){
|
|
|
|
|
int tlogi;
|
|
|
|
|
fread(&tlogi,sizeof(int),1,f);
|
|
|
|
|
for(int i=0; i<tlogi; i++){
|
|
|
|
|
fread(tiut[i]->Ville,sizeof(char),31,f);
|
|
|
|
|
}
|
|
|
|
|
for(int i=0; i<*tlogi; i++){
|
|
|
|
|
for(int i=0; i<tlogi; i++){
|
|
|
|
|
int nbIUTs;
|
|
|
|
|
fread(&nbIUTs,sizeof(int),1,f);
|
|
|
|
|
if(nbIUTs){
|
|
|
|
@ -56,7 +57,7 @@ VilleIUT** loadIUT(VilleIUT** tiut, int* tlogi){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tiut[0];
|
|
|
|
|
return tlogi;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void saveIUT(VilleIUT** tiut, int tlogi){
|
|
|
|
|