commit
This commit is contained in:
parent
dec244496a
commit
32db489031
4 changed files with 27 additions and 1 deletions
|
@ -8,3 +8,9 @@
|
||||||
8,test,tesst,21,120,2023
|
8,test,tesst,21,120,2023
|
||||||
9,test,tesst,21,120,2023
|
9,test,tesst,21,120,2023
|
||||||
10,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
|
||||||
|
|
2
main.c
2
main.c
|
@ -19,7 +19,7 @@ int main()
|
||||||
addListener(listenerChain, "Roger", 19, 4);
|
addListener(listenerChain, "Roger", 19, 4);
|
||||||
addListener(listenerChain, "Roger", 19, 4);
|
addListener(listenerChain, "Roger", 19, 4);
|
||||||
|
|
||||||
//menu(confChain, listenerChain);
|
menu(confChain, listenerChain);
|
||||||
|
|
||||||
saveConf(confChain);
|
saveConf(confChain);
|
||||||
saveListeners(listenerChain);
|
saveListeners(listenerChain);
|
||||||
|
|
BIN
main.exe
BIN
main.exe
Binary file not shown.
|
@ -3,6 +3,7 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include "screenManager.h"
|
#include "screenManager.h"
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
|
#include "fileManager.h"
|
||||||
|
|
||||||
void goToCoords(int x, int y)
|
void goToCoords(int x, int y)
|
||||||
{
|
{
|
||||||
|
@ -93,6 +94,16 @@ void menuConf(ptConf confChain, ptListener listenerChain) {
|
||||||
switch (choice)
|
switch (choice)
|
||||||
{
|
{
|
||||||
case 1:
|
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;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
|
@ -123,6 +134,15 @@ void menuAbo(ptConf confChain, ptListener listenerChain) {
|
||||||
switch (choice)
|
switch (choice)
|
||||||
{
|
{
|
||||||
case 1:
|
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;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue