题目学生健康情况管理系统【问题描述】实现学生健康情况管理的几个操作功能(新建、插入、删除、从文件读取、写入文件和查询、屏幕输出等功能)。健康表中学生的信息有学号、姓名、出生日期、性别、身体状况等。【实验内容】必做内容利用顺序存储结构来实现系统的菜单功能项如下:1------新建学生健康表2------向学生健康表插入学生信息3------在健康表删除学生信息4------从文件中读取健康表信息5------向文件写入学生健康表信息6------在健康表中查询学生信息(按学生学号来进行查找)7------在屏幕中输出全部学生信息8-----退出程序如下:#include<iostream>#include<fstream>usingnamespacestd;/** 学生结点的设置,包含学号stuID,姓名name,出生日期BirthOfDate, 性别sex(B、G),健康状况(A,B,C)*/structbirthday//出生日期{ unsignedshortday; unsignedshortmonth; unsignedshortyear;};structSstudent//一个学生的基本信息{ charstuID[12];//学号charname[12];//名字 structbirthdaybd;//出生日期 charsex[4];//性别 charhealthcase[10];//健康情况 Sstudent(){}voidinput();//输入学生的基本信息 voidoutput();//输出学生的基本信息 voidoperator=(Sstudents); booloperator<(Sstudent&s); booloperator==(Sstudents); booloperator>(Sstudent&s);};voidSstudent::input()//输入一个学生的信息{ cout<<"请输入学生信息:"<<endl; cout<<"请输入学生的学号:"; cin>>stuID; cout<<"请输入学生的名字:"; cin>>name; cout<<"请输入学生的性别:"; cin>>sex; cout<<"请输入学生生日的日期(年、月、日):"; cin>>>>>>; cout<<"请输入学生的健康情况(良好或差):"; cin>>healthcase; cout<<endl;}voidSstudent::output()//输出一个学生的信息{ cout<<"学号:"<<stuID<<endl<<"姓名:"<<name<<endl <<"性别:"<<sex<<endl <<"生日:"<<<<"/"<<<<"/"<<<<endl <<"健康情况:"<<healthcase<<endl<<endl;}voidSstudent::operator=(Sstudents){ strcpy(stuID,); strcpy(name,); strcpy(sex,); =; =; =; strcpy(healthcas
顺序表建立学生健康表 来自淘豆网m.daumloan.com转载请标明出处.