Siwa12100 3 years ago
commit c6982bdbb6

1
.gitignore vendored

@ -3,3 +3,4 @@ a.out
*.gch *.gch
*.vscode* *.vscode*
exe* exe*
.nfs*

@ -82,7 +82,7 @@ typedef struct maillonCandidat
void Globale(void); void Globale(void);
Log * chargementLog(char * nomFichier); Log * chargementLog(char * nomFichier);
//void menuVisiteur(VilleIut *villeIut, int nbVilles); //void menuVisiteur(VilleIut *villeIut, int nbVilles);
void menuVisiteur(void); void menuVisiteur(Log * tLog);
int afficherMenuVisiteur(void); int afficherMenuVisiteur(void);
int choixMenuVisiteur(void); int choixMenuVisiteur(void);
void banniereConnection(void); void banniereConnection(void);

@ -1,8 +1,8 @@
#include "../header/sae.h" #include "../header/sae.h"
int main(void) int main(void)
{ {
#ifdef _WIN32 #ifdef _WIN32
color color
#endif #endif

@ -20,7 +20,7 @@ void Globale(void)
tLog = chargementLog("../donnees/log.don"); tLog = chargementLog("../donnees/log.don");
//Appel du menu visiteur //Appel du menu visiteur
//menuVisiteur(); menuVisiteur(tLog);
//Sauvegarde dans les fichiers //Sauvegarde dans les fichiers
} }
@ -83,7 +83,7 @@ Log * chargementLog(char * nomFichier)
* choixMenuVisiteur. Selon le choix de l'utilisateur, la fonction appelle la fonction correspondante * choixMenuVisiteur. Selon le choix de l'utilisateur, la fonction appelle la fonction correspondante
* ou met fin à l'exécution de la fonction. * ou met fin à l'exécution de la fonction.
*/ */
void menuVisiteur(void) void menuVisiteur(Log * tLog)
//void menuVisiteur(VilleIut *villeIut, int nbVilles) //void menuVisiteur(VilleIut *villeIut, int nbVilles)
{ {
int choix; int choix;
@ -98,7 +98,7 @@ void menuVisiteur(void)
switch(choix) switch(choix)
{ {
case 1: case 1:
//afficheVillesIUT(villeIut, nbVilles); //afficheVillesIUT(villeIut, 0);
printf("Affiche les villes qui ont des IUT. (En attente de la fonction de chargement)\n"); printf("Affiche les villes qui ont des IUT. (En attente de la fonction de chargement)\n");
break; break;
case 2: case 2:

@ -0,0 +1,19 @@
#include "../header/sae.h"
/**
* @brief Test fonction Jean
*
*/
void testJean(void)
{
VilleIut **tIut = (VilleIut **)malloc(sizeof(VilleIut *)*5);
strcpy(tIut[0]->nom, "John");
strcpy(tIut[0]->ldept->nomDept, "Info");
strcpy(tIut[0]->ldept->resp, "YAnis");
tIut[0]->ldept->nbP = 12;
tIut[0]->ldept->suiv = NULL;
//afficheVillesIUT(tIut, 0);
}
Loading…
Cancel
Save