diff --git a/data/confs b/data/confs index 9fb7602..29c7eaf 100644 --- a/data/confs +++ b/data/confs @@ -8,3 +8,9 @@ 8,test,tesst,21,120,2023 9,test,tesst,21,120,2023 10,test,tesst,21,120,2023 +11,test,tesst,21,120,2023 +12,test,tesst,21,120,2023 +13,test,tesst,21,120,2023 +14,test,tesst,21,120,2023 +15,test,tesst,21,120,2023 +16,test,tesst,21,120,2023 diff --git a/main.c b/main.c index b06d6ad..99b44ec 100644 --- a/main.c +++ b/main.c @@ -19,7 +19,7 @@ int main() addListener(listenerChain, "Roger", 19, 4); addListener(listenerChain, "Roger", 19, 4); - //menu(confChain, listenerChain); + menu(confChain, listenerChain); saveConf(confChain); saveListeners(listenerChain); diff --git a/main.exe b/main.exe index 829298b..b9d60c4 100644 Binary files a/main.exe and b/main.exe differ diff --git a/screenManager.c b/screenManager.c index 38965d2..cc95601 100644 --- a/screenManager.c +++ b/screenManager.c @@ -3,6 +3,7 @@ #include #include "screenManager.h" #include "conf.h" +#include "fileManager.h" void goToCoords(int x, int y) { @@ -93,6 +94,16 @@ void menuConf(ptConf confChain, ptListener listenerChain) { switch (choice) { case 1: + system ("cls"); + ptConf px = confChain; + + while (px -> next != NULL) { + printf("title : %s\nspeaker : %s\n", px -> title, px -> speaker); + printf("%d/%d/%d\n\n",px -> day, px -> month, px -> year); + px = px -> next; + } + system("pause"); + menuConf(confChain, listenerChain); break; case 2: @@ -123,6 +134,15 @@ void menuAbo(ptConf confChain, ptListener listenerChain) { switch (choice) { case 1: + system ("cls"); + ptListener py = listenerChain; + + while (py -> next != NULL) { + printf("name: %s\nage: %d\nlevel: %d", py -> name, py -> age, py -> level); + py = py -> next; + } + system("pause"); + menuConf(confChain, listenerChain); break; case 2: