76 lines
No EOL
1.6 KiB
C
76 lines
No EOL
1.6 KiB
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include "conf.h"
|
|
|
|
int main()
|
|
{
|
|
ptConf confChain = newConfChain();
|
|
ptListener listenerChain = newListenerChain();
|
|
|
|
addConf(confChain, "test", "tesst", 21, 120, 2023);
|
|
addConf(confChain, "test", "tesst", 21, 120, 2023);
|
|
addConf(confChain, "test", "tesst", 21, 120, 2023);
|
|
|
|
//addListener(listenerChain, "Roger", 19, 4);
|
|
|
|
ptConf px = confChain;
|
|
|
|
while (px -> next != NULL) {
|
|
printf("title : %s\nspeaker : %s\n", px -> title, px -> speaker);
|
|
px = px -> next;
|
|
}
|
|
|
|
int i=0,j=0;
|
|
|
|
////////////////////////// Menu 1 ////////////////////////////////
|
|
|
|
printf("\n 1/ Gestion des conferences\n 2/ Gestion des abonnes\n 3/ Participer a une conference");
|
|
printf("\n 4/ Voir la meilleure conference\n 5/ Voir la participation a une conference");
|
|
printf("\n 6/ Quitter\n");
|
|
|
|
|
|
scanf("%d",&i);
|
|
|
|
//////////////////////////////////////////////////////////////////
|
|
|
|
switch (i){
|
|
|
|
//////////////////////// Menu conf /////////////////////////
|
|
|
|
case 1:{
|
|
printf("\n 1/ Voir la liste des conferences\n 2/ Ajouter une conference \n 3/ Suprimer une conference\n 4/ Retour\n");
|
|
break;
|
|
}
|
|
|
|
/////////////////////// Menu abonne /////////////////////////
|
|
|
|
case 2: {
|
|
printf("\n 1/ Voir la liste des abonnes\n 2/ Ajouter un abonne \n 3/ Suprimer un abonne\n 4/ Retour\n");
|
|
break;
|
|
}
|
|
|
|
case 3: {
|
|
printf("\n Nom de l'abonne : \n Nom de la conference : \n Note de la conference : ");
|
|
break;
|
|
}
|
|
|
|
case 4: {
|
|
printf("\n Nom : \n Note : ");
|
|
break;
|
|
}
|
|
|
|
|
|
case 5: {
|
|
printf("\n Entrer le nom de la conference : ");
|
|
break;
|
|
}
|
|
|
|
case 6: {
|
|
return 0;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
return 0;
|
|
} |