commit
This commit is contained in:
parent
c71dcffdf6
commit
7450b610cb
4 changed files with 100 additions and 29 deletions
65
main.c
65
main.c
|
@ -5,11 +5,72 @@
|
|||
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);
|
||||
|
||||
printf("title : %s\nspeaker : %s\n", confChain -> title, confChain -> speaker);
|
||||
printDate(confChain -> date);
|
||||
//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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue