commit
This commit is contained in:
parent
36319a7b7f
commit
99e4e8130e
6 changed files with 20 additions and 12 deletions
22
singleFile.c
22
singleFile.c
|
@ -683,7 +683,7 @@ void menuConf(ptConf confChain, ptListener listenerChain)
|
|||
printf("Id : %d\nTitre : %s\nConferencier : %s\n", px->id, px->title, px->speaker);
|
||||
printf("Date : %d/%d/%d\n", px->day, px->month, px->year);
|
||||
printf("Nombre de participants : %d\n", confParticipations(px));
|
||||
if (px->listeners->next != NULL)
|
||||
if (px->listeners->next->next != NULL)
|
||||
{
|
||||
printListenerList(px->listeners->next);
|
||||
}
|
||||
|
@ -750,6 +750,16 @@ void menuConf(ptConf confChain, ptListener listenerChain)
|
|||
|
||||
case 4:
|
||||
{
|
||||
ptConf px = confChain->next;
|
||||
|
||||
printf("\n");
|
||||
while (px->next != NULL)
|
||||
{
|
||||
printf("%s : %d/%d/%d\n", px->title, px->day, px->month, px->year);
|
||||
px = px->next;
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
int day, month, year, time;
|
||||
printf("Jour : ");
|
||||
scanf("%d", &day);
|
||||
|
@ -760,7 +770,7 @@ void menuConf(ptConf confChain, ptListener listenerChain)
|
|||
|
||||
time = day + 31 * month + 365 * year;
|
||||
|
||||
ptConf px = confChain;
|
||||
px = confChain;
|
||||
|
||||
while (px->next != NULL)
|
||||
{
|
||||
|
@ -781,7 +791,7 @@ void menuConf(ptConf confChain, ptListener listenerChain)
|
|||
}
|
||||
|
||||
saveConf(confChain->next);
|
||||
|
||||
saveRelations(confChain->next);
|
||||
menuConf(confChain, listenerChain);
|
||||
}
|
||||
|
||||
|
@ -815,7 +825,7 @@ void menuAbo(ptConf confChain, ptListener listenerChain)
|
|||
while (py->next != NULL)
|
||||
{
|
||||
printf("Id : %d\nNom: %s\nAge: %d\nNiveau: %d\n", py->id, py->name, py->age, py->level);
|
||||
if (py->confs->next != NULL)
|
||||
if (py->confs->next->next != NULL)
|
||||
{
|
||||
printConfList(py->confs->next);
|
||||
}
|
||||
|
@ -951,7 +961,7 @@ void menu(ptConf confChain, ptListener listenerChain)
|
|||
|
||||
case 4:
|
||||
{
|
||||
ptConf px = confChain;
|
||||
ptConf px = confChain -> next;
|
||||
int max = confGradeAvg(px);
|
||||
ptConf confMax = px;
|
||||
|
||||
|
@ -967,7 +977,7 @@ void menu(ptConf confChain, ptListener listenerChain)
|
|||
px = px->next;
|
||||
}
|
||||
|
||||
printf("La conférence la mieux notee est : %s\n\n", confMax->title);
|
||||
printf("La conference la mieux notee est : %s\n\n", confMax->title);
|
||||
|
||||
system("pause");
|
||||
menu(confChain, listenerChain);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue