⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 link.h

📁 软件的名称:学生信息管理系统 软件的功能:登录功能、主菜单功能、学生信息录入功能、学生记录的排序功能、查询和删除功能、学生信息打印功能、记录保存功能、记录读取功能、分数统计报表功能和退出功能等。
💻 H
字号:
//插入最后
int InsertLinkByLast(student **temp,student *data);

//初始化链表
int InitLink(student data[],int num);

//释放整个链表
int DeletLink(student *temp);

//增加记录
student *InsertStuInfo(student *pt,student *stu);

//按姓名删除记录
student *NameDelStuInfo(student *pt,char str[]);

//按学号删除记录
student *SnoDelStuInfo(student *pt,char str[]);

//按学号删除
//int DeleteLinkBySno(student **pt,char no[]);

//按学号删除
int DeleteLinkBySno(student **pt,char sno[]);

//找学号,返回目标学号指针位置
student *FindSno(student *pt,char sno[]);

//按学号查找
void SearchBySno(student **pt,char sno[]);

//选择按学号查找处理
void CheckSearchSno(student **pt);

//得到链表的长度
int GetLinkLen(student *link);

//验证学号合法性
void CheckSnoRight(int xcursor,int ycursor,char sno[]);

//判断学号是否存在,1是直接查找学号
int IsSnoExist(student *pt,char sno[],int flag,int xcursor,int ycursor);

//打印学号查询结果
int PrintSearchSno(student *pt,int count);

int DealtDel(student **pt,char sno[],int flag);

//封装查询函数
int SearchSnoResult(student **pt,int xcursor,int ycursor,int flag);

//学号查询最终调用
int SearchSno_Result(student **pt,int xcursor,int ycursor,int flag);

//按姓名查找
student *FindName(char name[]);

//验证姓名输入是否合法
int  CheckSearchName(char name[]);

//判断姓名是否存在
int IsNameExist(student *temp,char name[]);

//打印满足查询的姓名
int PrintSearchSName(student *pt,int count);

//封装查询姓名函数
int SearchNameResult(student **pt,int xcursor,int ycursor,int flag);

//按姓名查询最终处理
int SearchName_Result(student **pt,int xcursor,int ycursor,int flag);

/*求各科目平均分
  subject科目代号,比如1代表语文
  count为学生人数
*/
float SubjecAverage(student *temp,int subject,int count);

/*按科目降序排列
   count表示人数
*/
void SubjectDesc(student *temp,int subject,int count); 

//求科目前三甲
int SubjectTopThree(student *temp,int subject,int count,char str[]);

//科目前三甲
int TopThree_subject(student *temp,int subject,int count,char str[]);

//求总分前三甲
int ScoreTopThree(student *temp,int subject,char str[]);

//总分前三甲
int TopThree_score(student *temp,int count,char str[]);

//求平均分前三甲
int AvgTopThree(student *temp,int subject,char str[]);

//平均分前三甲
int TopThree_avg(student *temp,int count,char str[]);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -