-
Notifications
You must be signed in to change notification settings - Fork 0
/
student.h
executable file
·48 lines (37 loc) · 951 Bytes
/
student.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
#ifndef STUDENT_H
#define STUDENT_H
#include "mylib.h"
//存储学生信息的路径
#define STU_DB "./data/student.db"
typedef struct student{
int id;
char name[NAME_LEN+1];
char gender[4];
int age;
int c_score;
int cpp_score;
char psw[PSW_LEN+1];
}STUDENT;
typedef struct student_ptr {
STUDENT stu;
struct student_ptr *prev;
struct student_ptr *next;
}STU_LIST;
int stu_opt();
int stu_add();
void add_stu_dislay(STUDENT stu);
void login_stu_msg(STUDENT stu);
int stu_vertify(STUDENT *stu);
int stu_find();
void stu_sort_id(STU_LIST *head);
void stu_sort_gender(STU_LIST *head);
void stu_sort_age(STU_LIST *head);
void stu_sort_c(STU_LIST *head);
void stu_sort_cpp(STU_LIST *head);
void stu_free(STU_LIST *head);
int stu_list_read(STU_LIST *handle, int start, int cnt);
int stu_list_display(STU_LIST *handle,int start, int cnt);
void clear_stu_display();
void stu_data_display(STUDENT *stu, int num);
void find_stu_msg();
#endif