This commit is contained in:
Lukian LEIZOUR 2023-11-30 17:07:25 +01:00
parent df2be62fe2
commit e015c4a017
3 changed files with 307 additions and 234 deletions

38
conf.h
View file

@ -3,43 +3,47 @@
struct listenerList;
typedef struct conf {
typedef struct conf
{
int id;
char title[30];
char speaker[20];
int day;
int month;
int year;
struct listenerList* listeners;
struct conf* next;
struct listenerList *listeners;
struct conf *next;
} tConf;
typedef struct confList {
struct conf* conf;
typedef struct confList
{
struct conf *conf;
int grade;
struct confList* next;
struct confList *next;
} tConfList;
typedef struct listener {
typedef struct listener
{
int id;
char name[20];
int age;
int level;
struct confList* confs;
struct listener* prev;
struct listener* next;
struct confList *confs;
struct listener *prev;
struct listener *next;
} tListener;
typedef struct listenerList {
struct listener* listener;
typedef struct listenerList
{
struct listener *listener;
int grade;
struct listenerList* next;
struct listenerList *next;
} tListenerList;
typedef tConf* ptConf;
typedef tListener* ptListener;
typedef tConfList* ptConfList;
typedef tListenerList* ptListenerList;
typedef tConf *ptConf;
typedef tListener *ptListener;
typedef tConfList *ptConfList;
typedef tListenerList *ptListenerList;
int findConfId(ptConf confChain);
ptConf newConfChain();