c++课程设计-教师工资管理系统-源代码5060.docx
《c++课程设计-教师工资管理系统-源代码5060.docx》由会员分享,可在线阅读,更多相关《c++课程设计-教师工资管理系统-源代码5060.docx(32页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、教师工资管理系统源代码本文件包括四个文件,下载后请自行分开,每个文件由/分开,/后面即是要保存的文件名。本系统,包包括添加加,修改改,删除除,查询询,显示示。教师师信息保保存到文文件。有有帮助系系统,更更改字体体和背景景颜色功功能。还有,本程程序只需需编译连连接maain.Cpp 不要要把另外外三个文文件添加加到工程程,否则则会出现现连接出出错!(但是是四个文文件都要要放在同同一目录录下,因因为都要要用的。会会自动加加在Exxterrnall deepenndennciees里面面)/mmainn.cppp#inclludeeChhen.cppp#inclludeeLiiao.cppp#inc
2、lludeeusingg naamesspacce sstd;Functtionn t1000;int ccounnt;Liao abcc1;Chen abcc2;void collormme();void hellp();void mennu() /菜菜单charr c60=ttttt 欢欢 迎 使 用用 !;charr b1000=t WWelccomee too usse tthe teaacheers saalarry mmanaagemmentt syysteem !;systtem(coolorr fdd);couttnnnnneendll;coutttttt 教教师工资资管理系系
3、统nnnnenndl;coutttttt 制作人人:陈 伟 廖亚斌斌enddlenddl;coutttttt学号:08440822001110 088408820001099nnenndl;couttttttt 20010年年12月月nnnnttttenddl;for(intt i=0;ii=220;ii+)couutcii;_slleepp(400); /延延时couttnn;for(i=00;i=588;i+)couutbii;_slleepp(300); /延延时_sleeep(10000);systtem(clls);whille(11)ffflussh(sstdiin);/清清除输入
4、入流缓冲冲区syysteem(clss);cooutnnnnnenndl;cooutttttt教师师工资管管理系统统nnnn;coouttttt11.添加加教师信信息 22.修改改教师信信息enndlenndl;coouttttt33.删除除教师信信息 44.查询询教师信信息enndlenndl;coouttttt55.显示示教师信信息 66.系统统帮助信信息enndlenndl;coouttttt99.更改改皮肤颜颜色 00.退出出信息系系统nnnnenndl;coouttttt请请选择:;chhar a110;geets(a);swwitcch(aa0)ccasee 11:aabc11.a
5、ddd();brreakk;ccasee 22:aabc11.allterr();breeak;ccasee 33:aabc22.deel();brreakk;ccasee 44:aabc22.innquiiry();bbreaak;ccasee 55:aabc22.diispllay();bbreaak;ccasee 66:hhelpp();breeak;ccasee 99:ccoloormee();breeak;ccasee 00:couutnntttt谢谢使使用!nnntttt;exiit(00);bbreaak;ddefaaultt:couutnnntttt输输入错误误,请重重新选择择
6、!nnntttt;_slleepp(8000);breeak;void collormme()systtem(clls);charr a10;couttnnnnntttt11.黑白白tt2.黑绿;couttnntttt3.黑蓝ttt4.黑黑红;couttnntttt5.黑紫ttt6.黑黑黄;couttnntttt7.白粉(默默认)nnntttt;getss(a);swittch(a00)casse 1:ssysttem(coolorr 077);bbreaak;casse 2:ssysttem(coolorr 0aa);bbreaak;casse 3:ssysttem(coolorr 0bb)
7、;bbreaak;casse 4:ssysttem(coolorr 0cc);bbreaak;casse 5:ssysttem(coolorr 0dd);bbreaak;casse 6:ssysttem(coolorr 0ee);bbreaak;casse 7:ssysttem(coolorr fdd);bbreaak;deffaullt:bbreaak;void hellp()systtem(clls);couttnnnntttt 欢欢迎使用用教师工工资管理理系统;couttnntttt本系系统由陈陈伟,廖廖亚斌合合作编写写;couttnntt本系统统可以存存储教师师的教师师号,姓姓名,性性
8、别,职职称,基基本工资资,奖金金,保险险,其他他杂费,实实际工资资。其中中实际工工资=基基本工资资+奖金金-保险险-其他他杂费。;couttnntt本系统统可以添添加,修修改,删删除,显显示教师师工资信信息;还还有皮肤肤颜色修修改功能能。教师师工资都都保存在在磁盘的的Inffor.datt文件中中。;systtem(paausee);int mmainn()menuu();returrn 00;/FFuncctioon.ccpp#ifnddef Teaacheer #defiine Teaacheer#inclludee#inclludee#inclludee#inclludeeusingg
9、naamesspacce sstd;classs Fuuncttionnpubliic:striing numm; /教师号号striing namme; /姓名striing sexx; /性别striing tittle; /职称doubble basse_ppay; /基本工工资doubble rewwardd; /奖金doubble inssuree; /保险doubble othher; /其他杂杂费doubble reaalitty; /实际工工资/实实际工资资=基本本工资+奖金-保险-其他int c_numm(sttrinng ii); /按教教师号查查询int c_namme(
10、sstriing i,iint b); /按姓姓名查询询voidd c_outt(innt ii); /显示示单条教教师信息息voidd c_chaar(); /显示示汉字教教师信息息提示voidd ouut_ffilee(); /输出出到文件件voidd geet_ffilee(); /从文文件输入入;exterrn FFuncctioon tt1000;exterrn iint couunt;void Funnctiion:c_chaar()/输输出表格格头couttn - ;coutt| 教教师号 | 姓姓名 | 性别别 | 职称 |基本本工资 | 奖奖金 | 保险险 | 其他 | 实实
11、际工资资 |;coutt - ;int FFuncctioon:c_nnamee(sttrinng ii,innt bb)striing temmp;int tmpp=-11;int c=bb;geet_ffilee();tempp=i;for(intt a=0;aacoountt;a+)if(temmp=taa.nnamee)tmmp=aa;iff(c!=0)cc_ouut(aa);retuurn tmpp;int FFuncctioon:c_nnum(strringg i)/syysteem(clss);striing temmp;int tmpp=-11;get_fille();if(c
12、counnt=0)/ccouttntttt还还没有教教师信息息!enndl;elseetemmp=ii;forr(innt ii=0;iccounnt;ii+)iff(teemp=ti.numm)ttmp=i;bbreaak;retuurn tmpp;/教师号号 姓姓名 性别 职称称 基基本工资资 奖金金 保保险 其其他 实实际工资资void Funnctiion:c_outt(innt ii)/输输出教师师信息coutt| ssetww(111)tii.nnum|settw(77)tii.nnamee |ssetww(5)tti.seex |settw(66)tii.ttitlle|sset
13、ww(9)tti.baase_payy|seetw(6)ti.rewwardd|seetw(6)ti.inssuree|seetw(6)ti.othher|settw(99)tii.rreallityy |;coutt - ;void Funnctiion:geet_ffilee()/文件件读出/syysteem(clss);ifsttreaam iin;in.oopenn(IInfoor.ddat,ioos:in);if(!in)cerrrti.nummtti.naameti.sexxtti.tiitleetti.baase_payytti.reewarrdtii.iinsuureti.ot
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- c+ 课程设计 教师工资 管理 系统 源代码 5060
限制150内