Compare commits
1 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
d10834de6e | 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…
Reference in new issue