You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
624 B
26 lines
624 B
# 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 |