-
Notifications
You must be signed in to change notification settings - Fork 0
/
school.h
executable file
·72 lines (46 loc) · 1.4 KB
/
school.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#define NAME 100
#define CYAN FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_INTENSITY
#define CLS 234
typedef unsigned char uchar;
typedef int data_item;
typedef struct _menu_item {
char * description;
void(*pfunc)(void *, void *);
int (*pNum)(int);
char flag;
} Menu_item, *pMenu_item;
typedef struct Grade {
data_item lsn, grade;
struct Grade *next;
} Grd_t, *pGrd_t;
typedef struct Student {
char * name;
struct Student *next;
pGrd_t to_grade;
} Stn_t, *pStn_t;
typedef struct Cls {
uchar type_t;
data_item clsNum, amountOfStudents;
pStn_t student;
} Cls_t, *pCls_t;
int create_num();
char yOn();
char again();
int is_str_equall(char * name, char * string);
void name_print(char * name);
pCls_t make_cls(data_item data);
pStn_t make_student(char name[]);
pGrd_t make_grade(int gradeId, int grd );
int add_first_student(pStn_t *head, char name[]);
int add_first_grade(pGrd_t *head, int gradeId, int grd);
int add_last_grade(pGrd_t *head, pGrd_t last, int gradeId, int grd);
int find_stn(pStn_t * stn);
int add_student(pStn_t *head);
int change_grd(pStn_t stn, pGrd_t * last, int lsn, int grd);
int add_lsn(pStn_t stn);
int add_stn_lsn(pStn_t stn);
int del_stn(pStn_t * head);
int del_lsn(pStn_t stn);
int del_stn_lsn(pStn_t stn);
void lprnt_cls(void * Cls, void * null);
void lprnt_stn_grds(void * Cls, void * null);