学生成绩管理系统-c语言版新

这一个是上一个的完善版,排序功能得到完善,不是那么完美,但至少我还没发现有bug

#include<stdio.h>

#include<malloc.h>

#define NULL 0

#define LTS sizeof(struct mark)

struct mark

{

unsigned long int num;

char name[20];

int clas ;

float math;

float English;

float computer;

float total;

float ver;

struct mark *next;

};

struct mark *D_insertsort(struct mark *head)

{ int flag=0,a,b=0;

struct mark *f,*g,*q,*r,*s,*t;

printf("按数学请按1,按英语请按2,按微机请按3,按总成绩请按4:\n");

scanf("%d",&a);

if(a<0||a>4)

{return(head);

}

else

{

f=head;

q=f->next;

f->next=NULL;

t=f;

switch(a)

{

case 1: for(q;q!=NULL;)

{

r=q;

q=q->next;

r->next=NULL;

f=t;

if(f->math<=r->math)

你可能喜欢

  • c学生成绩管理系统
  • 学生管理系统c语言
  • 学生成绩管理系统c语言设计
  • c语言学生成绩管理
  • 学生成绩管理系统C语言
  • 学生成绩管理系统c语言程序
  • 学生成绩管理系统c语言代码

学生成绩管理系统 c语言版新相关文档

最新文档

返回顶部