You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
719 B
29 lines
719 B
#include "SAEl.h"
|
|
|
|
|
|
void globale(void) {
|
|
int tailleL, i, nbP = 7;
|
|
char nom[30],depart[30];
|
|
VilleIUT** tab;
|
|
char nomFich[20];
|
|
strcpy(nomFich,"iut.txt");
|
|
tab = chargementVille(nomFich,30,&tailleL);
|
|
for(i = 0 ; i < tailleL ; i++) {
|
|
printf("Ville : %s\n",tab[i]->ville);
|
|
affichageListeDept(tab[i]->idDept);
|
|
}
|
|
printf("Nom du depart :\n");
|
|
scanf("%s%*c",depart);
|
|
printf("Nom responsable :\n");
|
|
fgets(nom,30,stdin);
|
|
nom[strlen(nom) - 1] = '\0';
|
|
insererDept(tab[0]->idDept,depart,nom,nbP);
|
|
printf("Ville : %s\n",tab[0]->ville);
|
|
affichageListeDept(tab[0]->idDept);
|
|
SauvegarderIUT(tab,tailleL);
|
|
}
|
|
|
|
int main(void) {
|
|
globale();
|
|
return 0;
|
|
} |