Compare commits

..

1 Commits

Author SHA1 Message Date
mj2oqp9bf d10834de6e Add student.h
8 months ago

@ -0,0 +1,26 @@
# StudentInformationManagementSystem
#ifndef STUDENT_H
#define STUDENT_H
typedef struct {
int sid; // 学号
char name[20]; // 姓名
float score; // 成绩
} Student;
typedef struct {
Student data[100]; // 顺序表存储
int length; // 当前人数
} SqList;
// 功能函数声明
void InputStudents(SqList *L, int n);
void PrintStudents(SqList L);
int InsertStudent(SqList *L, int pos, Student s);
int DeleteStudent(SqList *L, int pos);
int GetStudentCount(SqList L);
void InsertSortByName(SqList *L);
void QuickSortBySid(SqList *L);
Student* BinarySearch(SqList L, int sid);
#endif
Loading…
Cancel
Save