Modifications et ajout de la fonction de chargement

master
Kyllian CHABANON 2 years ago
parent adf63f044e
commit 66a67ac596

@ -0,0 +1,7 @@
{
// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.
// Pointez pour afficher la description des attributs existants.
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": []
}

@ -1,4 +1,4 @@
{
"files.autoSaveDelay": 1000,
"files.autoSaveDelay": 500,
"files.autoSave": "afterDelay"
}

28
.vscode/tasks.json vendored

@ -0,0 +1,28 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc générer le fichier actif",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Tâche générée par le débogueur."
}
],
"version": "2.0.0"
}

46
SAE.h

@ -6,9 +6,9 @@
void global(void);
/* Menus */
void menu(VilleIUT *tiut[], int nbVilles);
void menuUtilisateur(VilleIUT *tiut[], int nbVilles);
void menuAdministrateur(VilleIUT *tiut[], int nbVilles);
void menu(VilleIUT *tiut[], int *nbIUT);
void menuUtilisateur(VilleIUT *tiut[], int *nbIUT);
void menuAdministrateur(VilleIUT *tiut[], int *nbIUT);
/* Partie 1 */
ListeDept listenouv(void);
@ -31,34 +31,34 @@ void setResp(ListeDept l, int pos, char valeur[]);
/* Fichier */
int chargementVillesIUT(VilleIUT *tiut[]);
int rechercheVille(VilleIUT *tiut[], int nb, char val[], bool *trouve);
void sauvegardeVillesIUT(VilleIUT *tiut[], int nb);
int rechercheVille(VilleIUT *tiut[], int nbIUT, char val[], bool *trouve);
void sauvegardeVillesIUT(VilleIUT *tiut[], int nbIUT);
/* Utilisateur */
void affichageVillesIUT(VilleIUT *tiut[], int nb);
void affichageDeptIUT(VilleIUT *tiut[], int nb);
void affichageNbP(VilleIUT *tiut[], int nb);
void affichageDeptParticulier(VilleIUT *tiut[], int nb);
void affichageVillesIUT(VilleIUT *tiut[], int nbIUT);
void affichageDeptIUT(VilleIUT *tiut[], int nbIUT);
void affichageNbP(VilleIUT *tiut[], int nbIUT);
void affichageDeptParticulier(VilleIUT *tiut[], int nbIUT);
/* Administrateur */
void modificationNbPDept(VilleIUT *tiut[], int nb);
void creationDept(VilleIUT *tiut[], int nb);
int suppressionDept(VilleIUT *tiut[], int nb);
void modificationRespDept(VilleIUT *tiut[], int nb);
void modificationNbPDept(VilleIUT *tiut[], int nbIUT);
void creationDept(VilleIUT *tiut[], int nbIUT);
int suppressionDept(VilleIUT *tiut[], int nbIUT);
void modificationRespDept(VilleIUT *tiut[], int nbIUT);
// Partie 3
Departement lireDpt(FILE *flot, ListeDepartement dpt);
void afficheDept(Departement dpt);
Admission lireCandidat(FILE *flot, ListeAdmission la);
void afficherCandidat(Admission candidat);
// Departement lireDpt(FILE *flot, ListeDepartement dpt);
// void afficheDept(Departement dpt);
// Admission lireCandidat(FILE *flot, ListeAdmission la);
// void afficherCandidat(Admission candidat);
int chargerCandidats(MaillonEtudiant *tetud[]);
void sauvegarderCandidats(ListeAdmission listeCandidats, char dptResAdmi[30]);
void afficherCandidatsAdmis(ListeAdmission listeCandidats);
void afficherCandidatsNonAdmis(ListeAdmission listeCandidats);
void afficherCandidatsAttente(ListeAdmission listeCandidats);
void afficherCandidatsDpt(ListeAdmission listeCandidats);
ListeAdmission MoyenneCandidats(ListeAdmission listeCandidats);
// void sauvegarderCandidats(ListeAdmission listeCandidats, char dptResAdmi[30]);
// void afficherCandidatsAdmis(ListeAdmission listeCandidats);
// void afficherCandidatsNonAdmis(ListeAdmission listeCandidats);
// void afficherCandidatsAttente(ListeAdmission listeCandidats);
// void afficherCandidatsDpt(ListeAdmission listeCandidats);
// ListeAdmission MoyenneCandidats(ListeAdmission listeCandidats);
// Liste Choix
ListeChoix listenouvChoix(void);

@ -1,13 +1,13 @@
#include "SAE.h"
void modificationNbPDept(VilleIUT *tiut[], int nb)
void modificationNbPDept(VilleIUT *tiut[], int nbIUT)
{
char iutModif[30], deptModif[30];
int posIUT, posDept, nbPlaces;
bool trouve;
printf("Dans quel IUT se situe le département que vous voulez modifier ?\n> ");
scanf("%s", iutModif);
posIUT = rechercheVille(tiut, nb, iutModif, &trouve);
posIUT = rechercheVille(tiut, nbIUT, iutModif, &trouve);
if (trouve == false)
{
printf("Cet IUT n'existe pas. Veuillez réessayer.\n");
@ -27,14 +27,14 @@ void modificationNbPDept(VilleIUT *tiut[], int nb)
printf("Le nombre de places est bien passé à %d.\n", getNbP(tiut[posIUT]->ldept, posDept));
}
void creationDept(VilleIUT *tiut[], int nb)
void creationDept(VilleIUT *tiut[], int nbIUT)
{
char iut[30], nomDept[30], nomResp[30];
int posIUT, nbP;
bool trouve;
printf("Dans quel IUT voulez-vous créer un département ?\n> ");
scanf("%s", iut);
posIUT = rechercheVille(tiut, nb, iut, &trouve);
posIUT = rechercheVille(tiut, nbIUT, iut, &trouve);
if (trouve == false)
{
printf("Cet IUT n'existe pas. Veuillez réessayer.\n");
@ -57,18 +57,18 @@ void creationDept(VilleIUT *tiut[], int nb)
printf("Vous avez créé le département \"%s\", avec %d places. Son responsable est %s.\n", nomDept, nbP, nomResp);
}
int suppressionDept(VilleIUT *tiut[], int nb)
int suppressionDept(VilleIUT *tiut[], int nbIUT)
{
char nomDept[30], iut[30], choix;
int posIUT;
bool trouve;
printf("Dans quel IUT voulez-vous supprimer un département ?\n> ");
scanf("%s", iut);
posIUT = rechercheVille(tiut, nb, iut, &trouve);
posIUT = rechercheVille(tiut, nbIUT, iut, &trouve);
if (trouve == false)
{
printf("Cet IUT n'existe pas. Veuillez réessayer.\n");
return nb;
return nbIUT;
}
printf("Quel département voulez-vous supprimer ?\n> ");
scanf("%s", nomDept);
@ -76,7 +76,7 @@ int suppressionDept(VilleIUT *tiut[], int nb)
if (trouve == false)
{
printf("Ce département n'existe pas dans cet IUT. Veuillez réessayer.\n");
return nb;
return nbIUT;
}
printf("Voulez-vous vraiment supprimer le département %s de l'IUT %s ? (o/N)\n> ", nomDept, iut);
scanf(" %c%*c", &choix);
@ -86,31 +86,31 @@ int suppressionDept(VilleIUT *tiut[], int nb)
printf("Vous avez bien supprimé le département %s de l'IUT %s.\n", nomDept, iut);
if (vide(tiut[posIUT]->ldept))
{
for (int i = posIUT; i < nb; i++)
for (int i = posIUT; i < nbIUT; i++)
{
tiut[i] = tiut[i + 1];
}
free(tiut[nb]);
free(tiut[nbIUT]);
printf("L'IUT %s a été supprimé car il n'avait plus de départements.\n", iut);
return nb - 1;
return nbIUT - 1;
}
}
else
{
printf("Vous avez annulé la suppression du département.\n");
}
return nb;
return nbIUT;
}
void modificationRespDept(VilleIUT *tiut[], int nb)
void modificationRespDept(VilleIUT *tiut[], int nbIUT)
{
char iutModif[30], deptModif[30], nouvResp[30];
int posIUT, posDept;
bool trouve;
printf("Dans quel IUT se situe le département que vous voulez modifier ?\n> ");
scanf("%s", iutModif);
posIUT = rechercheVille(tiut, nb, iutModif, &trouve);
posIUT = rechercheVille(tiut, nbIUT, iutModif, &trouve);
if (trouve == false)
{
printf("Cet IUT n'existe pas. Veuillez réessayer.\n");

BIN
exe

Binary file not shown.

@ -2,9 +2,11 @@
void global(void)
{
int nbVilles;
int nbVilles, nbCandidats;
VilleIUT *tiut[100];
MaillonEtudiant *tetud[100];
nbVilles = chargementVillesIUT(tiut);
menu(tiut, nbVilles);
nbCandidats = chargerCandidats(tetud);
menu(tiut, &nbVilles);
sauvegardeVillesIUT(tiut, nbVilles);
}

@ -1,6 +1,6 @@
#include "SAE.h"
void menu(VilleIUT *tiut[], int nbVilles)
void menu(VilleIUT *tiut[], int *nbIUT)
{
int choix;
bool c = false;
@ -16,17 +16,14 @@ void menu(VilleIUT *tiut[], int nbVilles)
switch (choix)
{
case 1:
c = false;
menuUtilisateur(tiut, nbVilles);
menuUtilisateur(tiut, nbIUT);
break;
case 2:
c = false;
menuAdministrateur(tiut, nbVilles);
menuAdministrateur(tiut, nbIUT);
break;
case 9:
c = true;
return;
break;
default:
printf("Option non reconnue. Veuillez recommencer.\n");
break;
@ -34,7 +31,7 @@ void menu(VilleIUT *tiut[], int nbVilles)
}
}
void menuUtilisateur(VilleIUT *tiut[], int nbVilles)
void menuUtilisateur(VilleIUT *tiut[], int *nbIUT)
{
int choix;
bool c = false;
@ -52,20 +49,16 @@ void menuUtilisateur(VilleIUT *tiut[], int nbVilles)
switch (choix)
{
case 1:
c = false;
affichageVillesIUT(tiut, nbVilles);
affichageVillesIUT(tiut, *nbIUT);
break;
case 2:
c = false;
affichageDeptIUT(tiut, nbVilles);
affichageDeptIUT(tiut, *nbIUT);
break;
case 3:
c = false;
affichageNbP(tiut, nbVilles);
affichageNbP(tiut, *nbIUT);
break;
case 4:
c = false;
affichageDeptParticulier(tiut, nbVilles);
affichageDeptParticulier(tiut, *nbIUT);
break;
case 9:
c = true;
@ -77,7 +70,7 @@ void menuUtilisateur(VilleIUT *tiut[], int nbVilles)
}
}
void menuAdministrateur(VilleIUT *tiut[], int nbVilles)
void menuAdministrateur(VilleIUT *tiut[], int *nbIUT)
{
int choix;
bool c = false;
@ -97,33 +90,26 @@ void menuAdministrateur(VilleIUT *tiut[], int nbVilles)
switch (choix)
{
case 1:
c = false;
modificationNbPDept(tiut, nbVilles);
modificationNbPDept(tiut, *nbIUT);
break;
case 2:
c = false;
creationDept(tiut, nbVilles);
creationDept(tiut, *nbIUT);
break;
case 3:
c = false;
suppressionDept(tiut, nbVilles);
*nbIUT = suppressionDept(tiut, *nbIUT);
break;
case 4:
c = false;
modificationRespDept(tiut, nbVilles);
modificationRespDept(tiut, *nbIUT);
break;
case 5:
c = false;
//
break;
case 6:
c = false;
//
break;
case 9:
c = true;
return;
break;
default:
printf("Option non reconnue. Veuillez recommencer.\n");
break;

@ -64,30 +64,31 @@ int chargerCandidats(MaillonEtudiant *tetud[])
exit(1);
}
fscanf(file, "%d", &nbCandidats);
while(!feof(file))
while (i < nbCandidats - 1)
{
tetud[i] = (MaillonEtudiant*)malloc(sizeof(MaillonEtudiant));
if (tetud[i]==NULL)
tetud[i] = (MaillonEtudiant *)malloc(sizeof(MaillonEtudiant));
if (tetud[i] == NULL)
{
printf("Erreur malloc");
exit(2);
}
fscanf("%d%s", tetud[i]->num, tetud[i]->nom);
fgets(tetud[i]->prenom, 22, stdin);
fscanf(file, "%d%s", &tetud[i]->num, tetud[i]->nom);
fgets(tetud[i]->prenom, 22, file);
tetud[i]->prenom[strlen(tetud[i]->prenom - 1)] = '\0';
for (int note = 0; note < 5; note++)
for (int note = 0; note < 4; note++)
{
fscanf(file, "%f", tetud[i]->tabMatiere[note]);
}
fscanf(file, "%d", tetud[i]->nbChoix);
fscanf(file, "%d", &tetud[i]->nbChoix);
tetud[i]->lChoix = listenouvChoix();
for (int n = 0; n < tetud[i]->nbChoix; n++)
{
fscanf(file, "%s%s%d%d", choix.ville, choix.departement, &choix.decisionAdmission, &choix.decisionCandidat);
tetud[i]->lChoix = insererChoix(tetud[i]->lChoix, choix);
}
i++;
}
return i + 1;
}
// void sauvegarderCandidats(ListeAdmission la, char dptResAdmi[30])

@ -1,4 +1,4 @@
99
2
1
Miahxdamslwmmkangbxv
uxxfnuveepvapkzcxlmy
@ -27,100 +27,3 @@ Clermont-Ferrand
Departement3
0
0
3 Sofwpnwidwrbhymzhjfk kaljbbdwoqpwzandzqxd 13 6 16 1 5 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement16 0 0 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement17 0 0
4 Orjsumjnjoypbcoszlzw rdgtbemabkwrptrncjvs 1 7 15 18 2 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement4 0 0
5 Mwojzcnsbhkkbzozppvt vyejfqylclufqvmsrmqm 17 18 9 12 1 Clermont-Ferrand Departement19 0 0
6 Lxqkfisfgrowinjhkkvi ebxsmnogvgplaslvcfvh 3 4 13 15 4 Clermont-Ferrand Departement12 0 0 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement17 0 0 Clermont-Ferrand Departement20 0 0
7 Vqfrkniihsozxqkqpceq wrkeufgvzdwqdzthjyhm 5 7 12 9 1 Clermont-Ferrand Departement3 0 0
8 Oiruvmqffwsyzzhfzevg fvkcsvkufwvhszftwipb 17 7 7 10 5 Clermont-Ferrand Departement16 0 0 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement10 0 0 Clermont-Ferrand Departement16 0 0
9 Icaidezxblesqsrfptua yqzwnkcciculwphsamts 2 17 15 3 4 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement14 0 0 Clermont-Ferrand Departement4 0 0 Clermont-Ferrand Departement15 0 0
10 Grytnlmspsbfuxfhpten mopweubomijtouneyfba 19 17 3 16 3 Clermont-Ferrand Departement9 0 0 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement10 0 0
11 Fcqfszgtgcrnrfdxrtat owynwcpuaktgtqkaqjge 7 0 4 14 4 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement1 0 0 Clermont-Ferrand Departement17 0 0
12 Cyxgbfhmqkrhbysktvss bzpysnzxmhczgvpfyptm 18 1 11 10 2 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement14 0 0
13 Rrhkxwserauelmnjjhtx dbdivbbkygradvlflrxw 5 10 11 5 2 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement18 0 0
14 Qpkbwbqvzhqzqyzzxmun gfbfuvlotxwvtxfhkwnu 6 12 10 4 2 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement8 0 0
15 Skkiyhmeqxvkftwlpefj dauystfibksujgdmjqpg 9 11 9 7 4 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement6 0 0 Clermont-Ferrand Departement6 0 0
16 Wtfmduocdpfxiautgdoz bodfwbhoujoxzheleotv 0 15 7 2 4 Clermont-Ferrand Departement12 0 0 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement19 0 0
17 Jfboxymdfclqzchjdair fpzuwlgwaeulqvpoqujl 19 20 7 0 5 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement1 0 0 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement19 0 0
18 Gwtgonvwlkhsfzgrbbbn tgevkspyqkbvgzuvdpsa 20 15 3 9 5 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement12 0 0 Clermont-Ferrand Departement16 0 0 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement10 0 0
19 Ysimxnfzyuvcmzeeyyxa xkraiohjsabhuenpqytp 2 3 4 19 5 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement12 0 0 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement1 0 0 Clermont-Ferrand Departement12 0 0
20 Awsookmavcolnbmyslhp lfflypuuvfnwdpszwutm 5 15 3 17 1 Clermont-Ferrand Departement1 0 0
21 Pkleupgyyysrqwbszkcm aenrkvnuxgbjmujvnbhh 16 4 0 2 1 Clermont-Ferrand Departement13 0 0
22 Jmngqtnmtkjxpferzhas gsujxirmwcvjhsflfbbw 18 9 3 9 4 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement16 0 0 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement4 0 0
23 Jvpldsqmsqzusduaretj qpzjhqmjlxkcfbiujhap 11 13 5 3 3 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement18 0 0 Clermont-Ferrand Departement12 0 0
24 Muepntdqpsgoqwpjvltk mohszumxeonpqesoeqas 19 12 11 1 5 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement12 0 0 Clermont-Ferrand Departement3 0 0
25 Iuxjbdvxsovskavcgrxm nnnlkizvjwevigagmtut 18 20 20 11 3 Clermont-Ferrand Departement14 0 0 Clermont-Ferrand Departement10 0 0 Clermont-Ferrand Departement2 0 0
26 Gtxcemsjwaconrubyocm ilzxszucfyjlhwyhygpq 12 6 13 13 3 Clermont-Ferrand Departement14 0 0 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement6 0 0
27 Chmawuteyyywkkolqzqe owqepzprlbglqmvbfqbx 15 9 6 16 4 Clermont-Ferrand Departement17 0 0 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement15 0 0
28 Lhxvjxjtjywwkdryxdbk hwwyfojoauxsolmytuxy 8 1 17 4 1 Clermont-Ferrand Departement8 0 0
29 Bawkmrzojtgmelvvgczf vupqlopiisstygcfplyg 11 14 9 17 4 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement17 0 0 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement4 0 0
30 Fvnqsnyqotzvumtvvemm cgtknaindayxsnjpddux 7 20 8 4 5 Clermont-Ferrand Departement9 0 0 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement1 0 0 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement17 0 0
31 Rihjcxfwrtzohlzjncmq jujclecnezlrxmffdkuz 7 2 13 10 5 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement10 0 0 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement2 0 0
32 Mflfvmfkacqkintlnmjx ivdppqdlrhabthrchrig 5 8 5 11 2 Clermont-Ferrand Departement6 0 0 Clermont-Ferrand Departement2 0 0
33 Zotpexokoxlxuzbqwzeq enbnowwychtpmnrspzia 2 15 6 17 2 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement15 0 0
34 Fzoqskdifvyxfadiknxn upsvglupbnjazdokgtpz 13 15 20 20 2 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement8 0 0
35 Pxheclzmncexkcecdzco ggnuuellkfbkgkdiurkt 0 2 2 11 1 Clermont-Ferrand Departement9 0 0
36 Kgsjtzxszjzegpiregco dgjzxvtgjnghylqdoczd 19 7 14 13 3 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement9 0 0 Clermont-Ferrand Departement2 0 0
37 Xpruipmwtnncalgzjgkz bziemfkexivmvbhkpxko 17 3 5 2 4 Clermont-Ferrand Departement13 0 0 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement18 0 0 Clermont-Ferrand Departement8 0 0
38 Fsuscnmhrwdbdkvhinms bycupnfquisfzjzrwqpt 3 17 3 18 2 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement13 0 0
39 Emrifzzwhkqvvnmfwyaw qwefrdjmreyyjguwrvic 7 14 18 13 4 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement6 0 0 Clermont-Ferrand Departement17 0 0
40 Hflmudlnetevertgnpke escgpjevtdqlkpfsruhq 0 20 20 2 5 Clermont-Ferrand Departement10 0 0 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement6 0 0 Clermont-Ferrand Departement19 0 0
41 Lzacklhkmgpirwoahipa dxddnzgptnbhlgyynhid 17 13 13 2 4 Clermont-Ferrand Departement14 0 0 Clermont-Ferrand Departement14 0 0 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement13 0 0
42 Qfqpmtqdryqsoengavqa eurtrfzyjccmgqquwwat 18 11 5 15 5 Clermont-Ferrand Departement6 0 0 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement14 0 0 Clermont-Ferrand Departement6 0 0 Clermont-Ferrand Departement2 0 0
43 Sbakimpygarczqibakpi ejxnxiqdgaicbqgxpegq 18 13 3 11 1 Clermont-Ferrand Departement12 0 0
44 Ljsjjjwmuixgqthvxruj nncxpehzbbpxelpyfzec 2 9 15 11 4 Clermont-Ferrand Departement13 0 0 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement5 0 0
45 Tetdpwsftzvsjdokrwns liiongssojnhkqeszzyx 5 14 13 0 3 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement13 0 0
46 Whqjjatvljmxcmxydshq yrmclekjcmlfmxtrnsxa 12 4 7 15 3 Clermont-Ferrand Departement1 0 0 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement16 0 0
47 Ggxiwswszgjkhsovuabd lhyyrysojporftpxocca 5 2 17 2 5 Clermont-Ferrand Departement13 0 0 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement14 0 0
48 Vcpcyvbxfsxeypairbqz azydfotjanlcuyqctjhn 5 12 10 10 1 Clermont-Ferrand Departement10 0 0
49 Wacyqvxrozzhdlfirfta mmaqfrbhdouahlxnthma 12 3 10 5 4 Clermont-Ferrand Departement12 0 0 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement18 0 0
50 Zuxvljtgyoiyqqhsyxlf zmbzaxnxeegnlspcaydx 9 6 20 18 4 Clermont-Ferrand Departement4 0 0 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement1 0 0 Clermont-Ferrand Departement16 0 0
51 Sknoydvzfkitjzacjhnr frmcgqsumjtiprcnqmpw 5 19 16 1 3 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement13 0 0 Clermont-Ferrand Departement4 0 0
52 Hfchdzknkjugtpheghev dezvffmanakgseahmhak 7 5 4 18 5 Clermont-Ferrand Departement10 0 0 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement3 0 0
53 Rhwfkblugaumarhrzyhn gctduifckyaaejuihsgu 15 1 5 8 5 Clermont-Ferrand Departement18 0 0 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement6 0 0 Clermont-Ferrand Departement7 0 0
54 Rhlqvuisislusttnuwvo oyvpmglrufifiqpszevp 11 15 4 2 3 Clermont-Ferrand Departement13 0 0 Clermont-Ferrand Departement12 0 0 Clermont-Ferrand Departement1 0 0
55 Hoxxrlgohchhpxiaunte qvpcxeykqgwxipnyjlvq 12 6 16 13 2 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement11 0 0
56 Admjzjjimndguafpdswy phrrqdhwjfuxkzqjhzzw 6 1 3 18 3 Clermont-Ferrand Departement4 0 0 Clermont-Ferrand Departement10 0 0 Clermont-Ferrand Departement7 0 0
57 Flqspefebottpvkydbdh olyvnlheyziktofrqigs 10 20 4 20 3 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement12 0 0 Clermont-Ferrand Departement11 0 0
58 Opbtqgwnswmqclkyjrge amibhqfxopgibjesqwnc 19 8 8 0 5 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement10 0 0 Clermont-Ferrand Departement20 0 0
59 Ogobedazlpyshsktixea rarqldyhwxamuiukmnxh 18 12 14 15 1 Clermont-Ferrand Departement10 0 0
60 Jacaqhjuosagxlesaptu trvwflchtrpezstpcbpu 0 7 13 12 2 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement9 0 0
61 Gvhjyesjabosrgernqzn ixuuyaheyjmvarbxkqsb 0 12 2 4 3 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement5 0 0
62 Hcervblqcxlhchrvjkaj xbzkgsithtaxxyhncmkb 6 13 20 17 3 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement10 0 0
63 Bxvouomvfhmvlkbvcnum unurcvxtyfskedjnzrgo 5 5 14 2 2 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement16 0 0
64 Zbtooqhqmaoleecbfljd hqsznvvdnxhbvgkznqqb 19 20 9 16 1 Clermont-Ferrand Departement13 0 0
65 Bpizafvxbuzaqomkkcfg ethpbnvqbjwndrtrikzb 9 8 5 20 2 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement20 0 0
66 Sftpfyndvlgefzcgjqqq fwbymaitgptidusuqjwh 14 0 17 17 4 Clermont-Ferrand Departement18 0 0 Clermont-Ferrand Departement10 0 0 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement7 0 0
67 Kxvjpbyhsvrcykftbbcg awxguucqqweafantynhr 19 1 12 13 2 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement6 0 0
68 Izwczrbqfxkwxiyuddvn ahzvvkbkoahhbpqkdzvc 8 12 20 15 3 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement2 0 0 Clermont-Ferrand Departement18 0 0
69 Tetewesjqcdmttbgacjs xtlkavhsgkkkwivhiiqc 15 6 8 1 3 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement1 0 0 Clermont-Ferrand Departement4 0 0
70 Jsjaxdaofritzkfoiozu qresmtzownwqgjbjulhn 5 17 2 7 2 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement14 0 0
71 Gcmefjlramgkpfttoxmw iudzyktmmhfksbwfldnw 9 10 18 17 2 Clermont-Ferrand Departement13 0 0 Clermont-Ferrand Departement6 0 0
72 Ypaklkcxrvwjnqzqdzap bhhmpgthewxlpkipaeqh 5 16 18 0 2 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement16 0 0
73 Ewzpnypmcpkctogubnsg iflohexuvfmdipbmhyrk 13 13 7 9 4 Clermont-Ferrand Departement17 0 0 Clermont-Ferrand Departement17 0 0 Clermont-Ferrand Departement17 0 0 Clermont-Ferrand Departement14 0 0
74 Gmlcobblwkhxxqlhamna nfrugmzjxqlifzownjoo 5 16 6 0 2 Clermont-Ferrand Departement6 0 0 Clermont-Ferrand Departement17 0 0
75 Kpzuwedkqyrmqbgzzafv bkgqhiutbefbhbzszvae 10 12 4 1 1 Clermont-Ferrand Departement2 0 0
76 Gqnrcwpezugjdxtjnkil crgcfsqpcqfthydymvwh 6 1 9 15 2 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement4 0 0
77 Laidutooirtrzcxbvidy kczoipeynskxawmosyyu 18 19 14 1 4 Clermont-Ferrand Departement18 0 0 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement13 0 0 Clermont-Ferrand Departement19 0 0
78 Msvrvxmositdkndjabjw ehbbhxjebibryrdldpzs 7 7 19 14 5 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement1 0 0 Clermont-Ferrand Departement4 0 0 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement18 0 0
79 Osigerrxlovrlduvdfgj zvxvtddhpgsmisgvohnh 8 0 2 13 4 Clermont-Ferrand Departement1 0 0 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement17 0 0 Clermont-Ferrand Departement17 0 0
80 Jzddkudyqywikdxfxgwl zlsuloohndfwyecadyxe 2 20 12 6 3 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement19 0 0
81 Woqigrriyobuprmwlaee sxgdotwytlmtokoxccaq 13 18 15 5 5 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement7 0 0 Clermont-Ferrand Departement12 0 0 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement1 0 0
82 Gqldilaysmainupapzuw cruxfvipbmmhjcfuqwkc 1 12 19 20 1 Clermont-Ferrand Departement3 0 0
83 Pixujajqlkhcmygmmtql ccgsqshsobudamxyretx 1 1 1 0 4 Clermont-Ferrand Departement14 0 0 Clermont-Ferrand Departement18 0 0 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement12 0 0
84 Etzgjsqqsmppngfvuevi xbigwtwnlmipltrynlfn 15 2 5 10 3 Clermont-Ferrand Departement16 0 0 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement13 0 0
85 Sshylfdrlnnkqpnvarhu shloyofzbnzvfvahplmi 14 5 15 19 2 Clermont-Ferrand Departement14 0 0 Clermont-Ferrand Departement18 0 0
86 Cauxjmtjepitbadaugxx azdkrbxnodlsxbegfopd 0 3 0 6 2 Clermont-Ferrand Departement4 0 0 Clermont-Ferrand Departement20 0 0
87 Odfpepixegnogjvbhykx ixxqpifnjmzgydbkhlul 6 10 13 16 4 Clermont-Ferrand Departement16 0 0 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement11 0 0
88 Laebtpmgiuaifiudmowx hgjswrazukzohaoiqexs 6 0 16 19 1 Clermont-Ferrand Departement8 0 0
89 Oqnfahepnpaioidluypp wklrznbpmnetndtfidpg 6 9 16 12 4 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement11 0 0 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement20 0 0
90 Ojchecwszrfybijbmtqf zfpbjmbhahshtoagoxza 7 7 17 18 5 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement14 0 0 Clermont-Ferrand Departement4 0 0 Clermont-Ferrand Departement4 0 0 Clermont-Ferrand Departement18 0 0
91 Gznxvvldhdpzgnlhrtxm ncxdyturgpnqvphcmpvf 4 18 4 2 5 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement19 0 0 Clermont-Ferrand Departement11 0 0
92 Uzttxlamoscfirrrutwn rtetkajnwcowublpaiim 19 14 17 20 4 Clermont-Ferrand Departement13 0 0 Clermont-Ferrand Departement5 0 0 Clermont-Ferrand Departement3 0 0 Clermont-Ferrand Departement10 0 0
93 Qvobopfvixiacqkpvnff symqnzbmmiadwufsiaui 15 7 17 19 3 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement3 0 0
94 Mkxksyqacptojmzrnfso bmacrskescmqptaqexuv 8 18 19 4 3 Clermont-Ferrand Departement12 0 0 Clermont-Ferrand Departement8 0 0 Clermont-Ferrand Departement11 0 0
95 Wvsyojrcqdvxemwlpvyx bcqmkwsmxigmkkmykcqx 13 11 16 1 4 Clermont-Ferrand Departement18 0 0 Clermont-Ferrand Departement6 0 0 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement9 0 0
96 Cbiluluiydacybuhzpoh slaaiadbdvskhlarllll 9 12 13 14 5 Clermont-Ferrand Departement1 0 0 Clermont-Ferrand Departement12 0 0 Clermont-Ferrand Departement16 0 0 Clermont-Ferrand Departement17 0 0 Clermont-Ferrand Departement2 0 0
97 Hxvevqkvysdpbrmwuhsp lqwxfwjgmetubhzlxsop 12 3 19 16 3 Clermont-Ferrand Departement9 0 0 Clermont-Ferrand Departement9 0 0 Clermont-Ferrand Departement17 0 0
98 Ewkrhhxvhcramxseivvv qbwbkfecndcmkezrwlmd 16 4 1 20 1 Clermont-Ferrand Departement18 0 0
99 Mqpjjqvxjmjyrsavdltc dedolkqjorzewomhgnek 15 11 20 16 5 Clermont-Ferrand Departement15 0 0 Clermont-Ferrand Departement20 0 0 Clermont-Ferrand Departement18 0 0 Clermont-Ferrand Departement17 0 0 Clermont-Ferrand Departement12 0 0

@ -1,28 +1,28 @@
#include "SAE.h"
void affichageVillesIUT(VilleIUT *tiut[], int nb)
void affichageVillesIUT(VilleIUT *tiut[], int nbIUT)
{
printf("Voici les villes qui ont un IUT :\n");
for (int i = 0; i < nb; i++)
for (int i = 0; i < nbIUT; i++)
{
printf("\t%s\n", tiut[i]->ville);
}
}
void affichageDeptIUT(VilleIUT *tiut[], int nb)
void affichageDeptIUT(VilleIUT *tiut[], int nbIUT)
{
printf("Voici les départements présents dans chaque IUT :\n");
for (int i = 0; i < nb; i++)
for (int i = 0; i < nbIUT; i++)
{
printf("\t%s :\n", tiut[i]->ville);
afficherDept(tiut[i]->ldept);
}
}
void affichageNbP(VilleIUT *tiut[], int nb)
void affichageNbP(VilleIUT *tiut[], int nbIUT)
{
printf("Voici le nombre de places dans chaque département de chaque IUT :\n");
for (int iut = 0; iut < nb; iut++)
for (int iut = 0; iut < nbIUT; iut++)
{
printf("\t%s :\n", tiut[iut]->ville);
for (int dept = 0; dept < longueur(tiut[iut]->ldept); dept++)
@ -32,14 +32,14 @@ void affichageNbP(VilleIUT *tiut[], int nb)
}
}
void affichageDeptParticulier(VilleIUT *tiut[], int nb)
void affichageDeptParticulier(VilleIUT *tiut[], int nbIUT)
{
char deptRecherche[30];
bool trouve, deptExiste = false;
printf("Quel département souhaitez-vous rechercher ?\n> ");
scanf("%s", deptRecherche);
printf("Voici les villes possédant le département %s :\n", deptRecherche);
for (int iut = 0; iut < nb; iut++)
for (int iut = 0; iut < nbIUT; iut++)
{
rechercheDept(tiut[iut]->ldept, deptRecherche, &trouve);
if (trouve == true)

Loading…
Cancel
Save