欢迎来到天天文库
浏览记录
ID:18501755
大小:82.00 KB
页数:26页
时间:2018-09-18
《宿舍管理系统.cpp》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、宿舍管理系统.cpp#include#includeusingnamespacestd;structTime//时间结构体{intyear;intmonth;intday;};classStudent//学生类{public:stringxue_hao;stringname;stringxing_bie;intis_Qin_Shi_Zhang;Student(){xue_hao="0113360";name="jtj";xing_bie="nan";is_Qin_Shi_Zhang=0;}voidinput()
2、{cout<<"请输入一位学生信息(学号,姓名,性别):";cin>>xue_hao>>name>>xing_bie;cout<<"是否是寝室长(是为1,不是为0)";cin>>is_Qin_Shi_Zhang;}voidoutput(){cout<<"学号:"<3、ent{stringgong_zuo_nei_rong;stringgong_zuo_jie_guo;stringjiancha_jie_guo;};stringnumber;stringname;stringwork;intage;Timetime;Eventevent;Bao_JIe_yuan(){number="0000";name="jtj";work="nan";age=0;time.year=0;time.month=0;time.day=0;}voidinput(){cout<<"请输入一位保洁员信息(工号,姓名,职位,年龄):";4、cin>>number>>name>>work>>age;}voidoutput(){cout<<"工号"<>time.year>>time.month>>time.day;cout<<"请输入工作内容:";cin>>event.gong_zuo_nei_rong;cout<<"请输入工作结果:";c5、in>>event.gong_zuo_jie_guo;cout<<"请输入检查结果:";cin>>event.jiancha_jie_guo;}voidoutput_record(){cout<6、guo;cout<<"检查结果:";cout<>name>>work>>age;}voidoutput(){cout<<"姓名:"<7、lassQin_Shi//寝室类{public:Student*stu;stringqin_shi_hao_ma;intchuang_wei_shu;intcheng_yuan_num;Qin_Shi(){stu=NULL;qin_shi_hao_ma="nb125";cheng_yuan_num=0;chuang_wei_shu=4;}voidinput(){cout<<"请输入寝室信息:"<>qin_shi_hao_ma;cout<<"床位数量:";cin>>chuang_wei_shu;cou8、t<<"寝室有几位成员:";cin>>cheng_yuan_num;stu=newStudent[cheng_yuan_num];for
3、ent{stringgong_zuo_nei_rong;stringgong_zuo_jie_guo;stringjiancha_jie_guo;};stringnumber;stringname;stringwork;intage;Timetime;Eventevent;Bao_JIe_yuan(){number="0000";name="jtj";work="nan";age=0;time.year=0;time.month=0;time.day=0;}voidinput(){cout<<"请输入一位保洁员信息(工号,姓名,职位,年龄):";
4、cin>>number>>name>>work>>age;}voidoutput(){cout<<"工号"<>time.year>>time.month>>time.day;cout<<"请输入工作内容:";cin>>event.gong_zuo_nei_rong;cout<<"请输入工作结果:";c
5、in>>event.gong_zuo_jie_guo;cout<<"请输入检查结果:";cin>>event.jiancha_jie_guo;}voidoutput_record(){cout<6、guo;cout<<"检查结果:";cout<>name>>work>>age;}voidoutput(){cout<<"姓名:"<7、lassQin_Shi//寝室类{public:Student*stu;stringqin_shi_hao_ma;intchuang_wei_shu;intcheng_yuan_num;Qin_Shi(){stu=NULL;qin_shi_hao_ma="nb125";cheng_yuan_num=0;chuang_wei_shu=4;}voidinput(){cout<<"请输入寝室信息:"<>qin_shi_hao_ma;cout<<"床位数量:";cin>>chuang_wei_shu;cou8、t<<"寝室有几位成员:";cin>>cheng_yuan_num;stu=newStudent[cheng_yuan_num];for
6、guo;cout<<"检查结果:";cout<>name>>work>>age;}voidoutput(){cout<<"姓名:"<7、lassQin_Shi//寝室类{public:Student*stu;stringqin_shi_hao_ma;intchuang_wei_shu;intcheng_yuan_num;Qin_Shi(){stu=NULL;qin_shi_hao_ma="nb125";cheng_yuan_num=0;chuang_wei_shu=4;}voidinput(){cout<<"请输入寝室信息:"<>qin_shi_hao_ma;cout<<"床位数量:";cin>>chuang_wei_shu;cou8、t<<"寝室有几位成员:";cin>>cheng_yuan_num;stu=newStudent[cheng_yuan_num];for
7、lassQin_Shi//寝室类{public:Student*stu;stringqin_shi_hao_ma;intchuang_wei_shu;intcheng_yuan_num;Qin_Shi(){stu=NULL;qin_shi_hao_ma="nb125";cheng_yuan_num=0;chuang_wei_shu=4;}voidinput(){cout<<"请输入寝室信息:"<>qin_shi_hao_ma;cout<<"床位数量:";cin>>chuang_wei_shu;cou
8、t<<"寝室有几位成员:";cin>>cheng_yuan_num;stu=newStudent[cheng_yuan_num];for
此文档下载收益归作者所有