数据结构课程设计---成绩管理系统(编辑修改稿)内容摘要:
%s的学号为: ,16,c)。 scanf(%ld,amp。 std[i].num)。 printf(%c 变更 %s的数学成绩为: ,16,c)。 scanf(%f,amp。 std[i].grade)。 printf(%c 变更 %s的语文成绩为: ,16,c)。 scanf(%f,amp。 std[i].chinese)。 std[i].total=std[i].chinese+std[i].grade。 //将总成绩修改 done()。 else {printf(\n%c 此姓名不存在。 ,19)。 done()。 //该函数与按学号修改函数思路完全一致 . void fix() if (empty()==0) system(cls)。 else int s。 scanf(%d,amp。 s)。 switch(s) case 1:fix_number()。 break。 //按学号修改成绩 case 2:fix_name()。 break。 //按姓名修改成绩 default :system(cls)。 void del_number() long num。 int i,j,flag=0。 printf(\n%c 请输入学生的学号: ,16)。 scanf(%ld,amp。 num)。 for(i=1。 i=n。 i++)//循环搜索需要删除的成绩 8 if (std[i].num==num) flag=1。 break。 if (flag==1) for(j=i。 j=n。 j++) std[j].num=std[j+1].num。 //将删除数据之后的学号前移一位 strcpy(std[j].c,std[j+1].c)。 // 将删除数据之后的姓名前移一位 std[j].grade=std[j+1].grade。 //分别将数学,语文,总成绩前移一位 std[j].chinese=std[j+1].chinese。 std[j].total=std[j+1].total。 n=1。 done()。 else {printf(\n%c 此学号不存在。 ,19)。 done() //删除算法的思路,经典在于删除数据后将之后所有数据提前的循环量的控制首先还是简单的查找删除数据的位置, n=1改变表单数据量 void del_name() char c[21]。 int i,j,flag=0。 printf(\n%c 请输入学生的姓名: ,16)。 scanf(%s,c)。 for(i=1。 i=n。 i++) if (strcmp(std[i].c,c)==0) flag=1。 break。 if (flag==1) for(j=i。 j=n。 j++) std[j].num=std[j+1].num。 //将删除数据之后的学号前移一位 strcpy(std[j].c,std[j+1].c)。 // 将删除数据之后的姓名前移一位 std[j].grade=std[j+1].grade。 //分别将数学,语文,总成绩前移一位 std[j].chinese=std[j+1].chinese。 n=1。 done()。 else {printf(\n%c 此姓名不存在。 \n,19)。 done()。 按照姓名删除与按照学号删除思路一致 void del() if (empty()==0) system(cls)。 else int s。 scanf(%d,amp。 s)。 switch(s) case 1:del_number()。 break。 //按照学号删除成绩 9 case 2:del_name()。 break。 //按照姓名删除成绩 default :system(cls)。 void search_number() long num。 int i,flag=0。 scanf(%ld,amp。 num)。 for(i=1。 i=n。 i++) //循环查找若找到了该学号则进行输出,没有找到则跳出查找 if (std[i].num==num) flag=1。 break。 if (flag==1) printf(\n%ld\t\t%s\t\t%\t\t%\n,std[i].num,std[i].c,std[i].grade,std[i].chinese)。 done()。 else {printf(\n%c 此学号不存在。 ,19)。 done()。 } void search_name() char c[21]。 int i,flag=0。 printf(%c 请输入学生的姓名: ,16)。 scanf(%s,c)。 for(i=1。 i=n。 i++) if (strcmp(std[i].c,c)==0)//循环查找该姓名 ,没有找到则跳出操作 flag=1。 break。 if (flag==1) printf(\n%ld\t\t%s\t\t%\t\t%\n,std[i].num,std[i].c,std[i].grade,std[i].chinese)。 done()。 else {printf(\n%c 此姓名不存在。 ,19)。 done()。 } void search() if (empty()==0) system(cls)。 else int s。 printf(\n查找数 据 \n\n)。 printf(请选择查找方式( 按学号查找; 按姓名查找;任意键返回。 ): )。 scanf(%d,。数据结构课程设计---成绩管理系统(编辑修改稿)
相关推荐
do so without need of host intervention. is returned by a function in response to an IN token or after the data phase 9 of an OUT or in response to a PING transaction. STALL indicates that a function
西餐礼仪文化论文 题目:西餐基本礼仪学院:旅游学院班级:姓名学号2摘 要本文简要的对西餐及西餐礼仪的含义进行概括,并对西餐礼仪在中国的发展,及对中国人的生活影响进行了概述,重点说明西餐礼仪的重要性。 然后对西餐礼仪中的席次的安排、西餐的菜序、西餐的餐具的摆放、使用及作用及进餐礼仪进行了重点,详细的介绍,旨在全面地、有序地、而又简洁地对西餐礼仪进行介绍。 并进行自己的一些建议。 关键词:西餐
g, drilling. At the same time a highspeed machine tool spindle system and highspeed feeding system, high stiffness of the main characteristics of highprecision targeting and 5 highprecision
nt operations even less so, the fewer can be less plex. Security and integrity maintenance are deemphasized or absent. As data limes will be small, performance efficiency is also important. In fact,
Press previously on Beginning VB SQL Server 7. 2 How to plan puter project Computer programming is and will continue to be one of the most important skills to master in the 21st century. Yet many
OS、 Windows、 OS/2 等),如 FANUC160/180, NUM 的 PCNC104F/1060等。 ③ 市售的 PC上利用扩展槽插入开发的 NC 类模板、 PLC接口模板或 I/O 接口模板等实现功能。 数控机床常见故障分类与诊断 数控机床的故障包括机械部分的故障、数控系统的故障、伺服与主轴驱动系统的故障以及辅助装置的故障等。 故障按其表现形式、性质、起因等可作多种分类。