commit
This commit is contained in:
parent
c71dcffdf6
commit
7450b610cb
4 changed files with 100 additions and 29 deletions
21
conf.h
21
conf.h
|
@ -1,18 +1,15 @@
|
|||
#ifndef CONF_H
|
||||
#define CONF_H
|
||||
|
||||
typedef struct date {
|
||||
int day;
|
||||
int month;
|
||||
int year;
|
||||
} tDate;
|
||||
|
||||
struct listenerList;
|
||||
|
||||
typedef struct conf {
|
||||
tDate *date;
|
||||
struct date* date;
|
||||
char title[30];
|
||||
char speaker[20];
|
||||
int day;
|
||||
int month;
|
||||
int year;
|
||||
struct listenerList* listeners;
|
||||
struct conf* next;
|
||||
} tConf;
|
||||
|
@ -26,8 +23,9 @@ typedef struct listener {
|
|||
char name[20];
|
||||
int age;
|
||||
int level;
|
||||
struct tConfList* confs;
|
||||
struct tListener* next;
|
||||
struct confList* confs;
|
||||
struct listener* prev;
|
||||
struct listener* next;
|
||||
} tListener;
|
||||
|
||||
typedef struct listenerList {
|
||||
|
@ -35,15 +33,14 @@ typedef struct listenerList {
|
|||
struct tListenerList* next;
|
||||
} tListenerList;
|
||||
|
||||
typedef tDate* ptDate;
|
||||
typedef tConf* ptConf;
|
||||
typedef tListener* ptListener;
|
||||
typedef tConfList* ptConfList;
|
||||
typedef tListenerList* ptListenerList;
|
||||
|
||||
ptDate newDate(int day, int month, int year);
|
||||
void printDate(ptDate date);
|
||||
ptConf newConfChain();
|
||||
void addConf(ptConf confChainStart, char title[], char speaker[], int day, int month, int year);
|
||||
ptListener newListenerChain();
|
||||
void addListener(ptListener listenerChain, char name[], int age, int level);
|
||||
|
||||
#endif // CONF_H
|
Loading…
Add table
Add a link
Reference in a new issue