c语言学生信息管理用到链表,帖子 我想申精 链表文件的基本作用 学生信息管理程序…

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

/* 软件功能 学生信息 能输入学生信息,姓名,学号,分数

function ①输入输出信息 ②能对分数进行飞递减排列

③清屏,对某一行输入信息 */

#include

#include

#include

#include

#define MAX 15

#define LEN sizeof(struct Stu)

#define SKIP sizeof(struct Stu*)

#define FALSE 0

#define OK 1

#define TRUE 1

struct Stu *ListIn(void);

int FileExist(char *name);// 检验文件是否存在

int GetListLen(struct Stu *p);// 获取链表长度

void DeskTop(void);// print the data the desk

void FileStore(struct Stu *p);// 储存链表数据到文件

struct Stu *bubble_sort(struct Stu *head, int n);// 排序函数

struct Stu *ListDataDele(struct Stu *p, int n);// 删除链表某一数据项

struct Stu *ListDataAdd(struct Stu *p, struct Stu *p_malloc, int n);// 在链表第n项增加数据项

struct Stu *ListOut(void);// 链表输出

struct Stu *ListGet(struct Stu *L, int n);// 获得第n个数据项

struct Stu

{

char name[MAX];// 学生姓名

int num;// 学号

float score;// 分数

struct Stu *next;

};

FILE *fp;// 文件指针

int main()

{

int ListLen;// the list’s length

char *ch = “学生信息.txt”;

struct Stu *head;

if

文章知识点与官方知识档案匹配,可进一步学习相关知识算法技能树首页概览33815 人正在系统学习中 相关资源:用PS软件给别人腿部增加丝袜裤–HP其他资源-CSDN文库

来源:张阿拉撕裤

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年4月21日
下一篇 2021年4月21日

相关推荐