c语言作业

来源:百度知道 编辑:UC知道 时间:2024/05/17 23:23:15
哪为高手帮帮忙,编一个学生成绩管理程序设计,具有以下功能:
(1)选项菜单集成各功能函数模块
(2)录入学生成绩(姓名、学号、语文、数学成绩,总分自动计算)
(3)按总分排名次
(4)按姓名查找某学生成绩
(5)统计各课程的平均分、及格率、最高分、最低分
(6)打印成绩表

你参考www.jxhd.info

#include <iostream.h>
#include <string.h>
struct node
{
float no; /*学号*/
char name[8]; /*姓名*/
float cj1; /*成绩1*/
float cj2; /*成绩2*/
float cj3; /*成绩3*/
float zf; /*总分*/
float pj; /*平均分*/
node *next;
};
node *student,*top,*head;

node *Create(node *student) //建立单链表(从键盘输入数据或从文件读入数据)
{
node *Ttemp;
char Tname[8];float Tcj1,Tcj2,Tcj3,Tno,Tmake=1;
student=new node;
student->next=NULL;head=top=student;
cout<<"输入学号,姓名,成绩1,成绩2,成绩3,成绩4\n";
while (Tmake)
{
cout<<"学号:";cin>>Tno;cout<<"姓名:";cin>>Tname;cout<<"成绩1:";cin>>Tcj1;
cout<<"成绩2:";cin>>Tcj2;cout<<"成绩3:";cin>>Tcj3;cout<<endl;
cout<<"