欢迎来到天天文库
浏览记录
ID:19805677
大小:530.50 KB
页数:24页
时间:2018-10-06
《软件技术基础大作业》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、软件技术基础班级:021114学号:02111352姓名:文洲时间:2014.01.02一、学籍管理系统线性表的应用文本界面为管理员1.输入信息2.保存信息3.查询信息4.修改并保存5.显示全部6.删除信息7.退出系统学生1信息查询(1)输入姓名(2)输入学号退出系统各功能显示效果模块图:学生和管理员输入管理员进入界面后增加学生成绩和导入学生成绩保存学生成绩学生进入界面后,按学生姓名查询并输出成绩程序代码:#include#include#include2、m>usingnamespacestd;#definepassword123456;//people.hclassstupeople//人员类基类{public:intgetage();//年龄char*getname();//姓名char*getsex();//性别voiddisplay();//输出信息voidpeosearch();//查询信息voidpeosave();//保存信息private:charname[20];charsex[4];intage;};//student.hclasss3、tustudent:publicstupeople{public:intgetnumber();//学号doublegetcscore();//语文doublegetmscore();//高数doublegetescore();//外语doublegetpscore();//C++doublegetdscore();//数据库doublegetsscore();//体育doublegetave();//平均成绩doublegetsum();//总成绩voidstuenterinfo();//输入信息vo4、iddisplay();//输出信息voidstusearch();//查找信息voidstusave();//保存信息voidstuload();//加载信息private:intnumber;doublecscore;doublemscore;doubleescore;doubledscore;doublepscore;doublesscore;doublesumscore;doubleavescore;};//admin.hclassstuadmin:publicstustudent//派生类管理5、员类{public:voidchange();//更改信息voiddel();//删除信息private:intnewage;intnewnumber;charnewsex;charnewname;charchangename[20];doublenewcscore;doublenewmscore;doublenewescore;doublenewdscore;doublenewpscore;doublenewsscore;doublenewsumscore;doublenewavescore;};in6、ti,j,p[6];charA,B,x;stuadminsa;structstudentinfo{intnumber;charname[20];charsex[4];intage;doublecscore;doublemscore;doubleescore;doublepscore;doubledscore;doublesscore;doublesumscore;doubleavescore;intflag;}s;//人员类的相关函数的定义intstupeople::getage(){returnage7、;}char*stupeople::getname(){returnname;}char*stupeople::getsex(){returnsex;}//学生类的相关函数的定义intstustudent::getnumber(){returnnumber;}doublestustudent::getcscore(){returncscore;}doublestustudent::getmscore(){returnmscore;}doublestustudent::getescore(){return8、escore;}doublestustudent::getpscore(){returnpscore;}doublestustudent::getdscore(){returndscore;}doublestustudent::getsscore(){returnsscore;}doublestustudent::getsum(){sumscore=cscore+mscore+escore+pscore+dscore+sscore;retu
2、m>usingnamespacestd;#definepassword123456;//people.hclassstupeople//人员类基类{public:intgetage();//年龄char*getname();//姓名char*getsex();//性别voiddisplay();//输出信息voidpeosearch();//查询信息voidpeosave();//保存信息private:charname[20];charsex[4];intage;};//student.hclasss
3、tustudent:publicstupeople{public:intgetnumber();//学号doublegetcscore();//语文doublegetmscore();//高数doublegetescore();//外语doublegetpscore();//C++doublegetdscore();//数据库doublegetsscore();//体育doublegetave();//平均成绩doublegetsum();//总成绩voidstuenterinfo();//输入信息vo
4、iddisplay();//输出信息voidstusearch();//查找信息voidstusave();//保存信息voidstuload();//加载信息private:intnumber;doublecscore;doublemscore;doubleescore;doubledscore;doublepscore;doublesscore;doublesumscore;doubleavescore;};//admin.hclassstuadmin:publicstustudent//派生类管理
5、员类{public:voidchange();//更改信息voiddel();//删除信息private:intnewage;intnewnumber;charnewsex;charnewname;charchangename[20];doublenewcscore;doublenewmscore;doublenewescore;doublenewdscore;doublenewpscore;doublenewsscore;doublenewsumscore;doublenewavescore;};in
6、ti,j,p[6];charA,B,x;stuadminsa;structstudentinfo{intnumber;charname[20];charsex[4];intage;doublecscore;doublemscore;doubleescore;doublepscore;doubledscore;doublesscore;doublesumscore;doubleavescore;intflag;}s;//人员类的相关函数的定义intstupeople::getage(){returnage
7、;}char*stupeople::getname(){returnname;}char*stupeople::getsex(){returnsex;}//学生类的相关函数的定义intstustudent::getnumber(){returnnumber;}doublestustudent::getcscore(){returncscore;}doublestustudent::getmscore(){returnmscore;}doublestustudent::getescore(){return
8、escore;}doublestustudent::getpscore(){returnpscore;}doublestustudent::getdscore(){returndscore;}doublestustudent::getsscore(){returnsscore;}doublestustudent::getsum(){sumscore=cscore+mscore+escore+pscore+dscore+sscore;retu
此文档下载收益归作者所有