-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathstudent.h
More file actions
51 lines (33 loc) · 745 Bytes
/
student.h
File metadata and controls
51 lines (33 loc) · 745 Bytes
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
#ifndef __STUDENT_H__
#define __STUDENT_H__
extern struct StudentInfo * students[100];
extern int stu_index;
extern struct node_StudentInfo * head;
struct StudentInfo
{
int id;
char name[20];
char gender[2];
int age;
char roomName[20];
int lateTime;
};
//定义结构体:存储单向链表
struct node_StudentInfo
{
struct StudentInfo *data;//定义数据域
struct node_StudentInfo *next;//定义指针域
};
//void save_node(struct node_StudentInfo *node ,FILE *fp);
void save_all();
void read_all();
struct node_StduentInfo * add_node(struct StudentInfo *data);
struct StudentInfo * add();
void printStudentInfo(struct StudentInfo *p);
void del();
void lookup();
void modify();
void printAll();
void free_all();
void caltime();
#endif