可按Ctrl+D收藏 蚂蚁资源网

蚂蚁资源网

c语言成绩管理系统(学生成绩管理系统c语言版)

  • 全部评论(3)
  • 织梦源码
  • / *首次创建一个新的分数。文件,插入0可用程序#include 文件* finmain(){fin = fopen(“score.in”,“r”); FPRINTF(FIN,“0”);返回0;完成* /#包括 #include #include #include #include #dflude n 999file * fin; main(){int a [n] = {0},ori = 0,i = 0,b = 0,添加[n] = {0},con = 0,orix [n] = {0},t = 0,te [n] = {0},truet,ixi,fx,abc = 0,sum,ture,xx; long long f [n] = {0},tex [n] = {0};的printf(“\ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \吨\吨\吨\吨\吨\吨\吨\ n \吨\吨\吨\吨\请稍候......“);睡眠(2000);系统(“CLS”); XP,XI; fin = fopen(“得分”,“R +”); FSCANF(FIN,“%D”,&XP);我= XP; for(xi = 1; xi <=xp;xi++){fscanf(fin,"%d%d%d",&f[xi],&a[xi],&te[xi]);te[xi]--;printf("Id:%lld score:%d ranking:%d\n",f[xi],a[xi],te[xi]+1); add[xi]=xi;orix[xi]=a[xi];}fclose(fin);int TRUE1;pe:while(1){ TRUE1=1;i++;printf("Id(输入-1:删除,输入-2:修改成绩,输入-3:删除所有内容,输入-4:保存到score.in并退出):");scanf("%lld",&f[i]);for(sum=1;sum te [con])te [ini] - ; te [con] = 0; brAK;}系统(“CLS”); for(con = 1; con <=i;con++){if(a[con]==0)continue;printf("Id:%lld score:%d ranking:%d\n",f[con],a[con],te[con]+1);}if(TRUE==0)printf("No Id is %lld\n",fx);continue;}system("cls");for(con=1;con = b; con - )f(或){t = orix [con]; orix [con] = orix [控制[con-1] = t; T; =添加[con];添加[con] =添加[con-1];添加[con-1] = t;} for(con = 1; con <=i;con++) te[add[con]]=con;for(con=1;con<=abc;con++)for(ixi=1;ixi<=i;ixi++)if(te[ixi]> tex [con])te [ini] - ; if(te [i] == te [i-1])te [i] = 0; for(con = 1; con <= i; con ++){if(a [con] == 0)继续; printf(“ID:%LLD分数:%d排名:%d \ n”,f [con],a [con],te [con] +1);}}返回0;} //寻求采用
  • 2021-08-29 11:51:40
  • visitor
  • #include //定义学生信息typedef struct {char name [20]; Char No [12];双数学;双电脑;双平均;分数 - 总计;}学生; //学生编号#定义Stunum 4void Inputgrade(学生* P,INT LEN); void ouppantgrade(学生* p,int len);空白排序(学生* p,int len); int main(void){int选择;学生stu [stunum]; do {printf(“1.输入信息。\ n”); printf(“2.查看平均分数和总分\ n”); printf(“3.等级排序。\ n”); printf(“4.看。\ n”); printf(“5.级别输出。\ n”); printf(“0. \ n退出”); Printf(“请输入您的选择(0-5):”); if(1!= scanf(“%d”,&cho)){fflush(stdin); printf(“请输入-5 \ n”);系统(“CLS”);继续;}开关(选择){Casse 1:Printf(“请输入学生数据:\ n“); Inputgrade(stu,stunum);中断;案例2:printf(”2 \ n“);休息;案例3:printf(”3 \ n“);休息;案例4:printf(” 4 \ n“);休息;案例5:printf(”学生级别:\ n“); outpuckgrade(stu,stunum);休息;案例0:退出(0); break;默认:break; break; system(”暂停“);系统(”CLS“);}} while(1);系统(”暂停“);返回0;} void Infutgrape(学生p [],int len){int i; for(i = 0;我< len; i ++){scanf(“%s%s%lf%lf”,p [i] .name,p [i] .no,&p [i] .math,&p [i] .computer; p [i] .total = p [i] .math + p [i] .computer; p [i] .average = p [i] .total / 2;}} / *函数名称:uppantgrade函数:输出得分函数参数:32313133353231363433323136343333330343162p结果阵列,len阵列长度函数返回值:无* / void ouppantgrade(s学生* p,int len){int i; for(i = 0; i
  • 2021-08-29 11:49:27
  • gyq
  • 如何用C语言编写&quot;学生成绩管理系统&quot;,#include /*引用库函数*/ #include #include #include typedef struct /*定义结构体数组*/ { char num[10]; /*学号*/ char name[20]; /*姓名*/ int score; /*成绩*/ }Student; Student stu[80]; /*结构体数组变量*/ int menu_select() /*菜单函数*/ { char c; do{ system("cls"); /*运行前清屏*/ printf("\t\t****Students' Grade Management System****\n"); /*菜单选择*/ printf("\t\t | 1. Input Records |\n"); printf("\t\t | 2. Display All Records |\n"); printf("\t\t | 3. Sort |\n"); printf("\t\t | 4. Insert a Record |\n"); printf("\t\t | 5. Delete a Record |\n"); printf("\t\t | 6. Query |\n"); printf("\t\t | 7. Statistic |\n"); printf("\t\t | 8. Add Records from a Text File|\n"); printf("\t\t | 9. Write to a Text file |\n"); printf("\t\t | 0. Quit |\n"); printf("\t\t*****************************************\n"); printf("\t\t\tGive your Choice(0-9):"); c=getchar(); /*读入选择*/ }while(c<'0'||c>'9'); return(c-'0'); /*返回选择*/ } int Input(Student stud[],int n) /*输入若干条记录*/ {int i=0; char sign,x[10]; /*x[10]为清除多余的数据所用*/ while(sign!='n'&&sign!='N') /*判断*/ { printf("\t\t\tstudent's num:"); /*交互输入*/ scanf("\t\t\t%s",stud[n+i].num); printf("\t\t\tstudent's name:"); scanf("\t\t\t%s",stud[n+i].name); printf("\t\t\tstudent's score:"); scanf("\t\t\t%d",&stud[n+i].score); gets(x); /*清除多余的输入*/ printf("\t\t\tany more records?(Y/N)"); scanf("\t\t\t%c",&sign); /*输入判断*/ i++; } return(n+i); } void Display(Student stud[],int n) /*显示所有记录*/ { int i; printf("\t\t\t-----------------------------------\n"); /*格式头*/ printf("\t\t\tnumber name score\n"); printf("\t\t\t-----------------------------------\n"); for(i=1;i1&&i%10==0) /*每十个暂停*
  • 2021-08-29 11:49:27
  • 商品推荐