基于C++多态的职工管理系统.zip

上传者: 39217004 | 上传时间: 2021-08-15 18:02:24 | 文件大小: 66.27MB | 文件类型: ZIP
本案例设计到的知识点为:面向对象中的封装、继承、多态以及文件IO流,在设计中有Worker职工的基类,以及分别派生类为普通员工、经理、以及总裁,基类中有纯虚函数子类分别作了实现。然后有个文件管理类,对用户做出不同的选择分别做不同的处理。可以对系统进行基本的增删改查功能。 1. 首先进入欢迎界面,让用户输入不同选择,进入不同选项 1.1. 0 -- 退出 1.2. 1 -- 增加职工 1.3. 2 -- 删除职工 1.4. 3 -- 显示所有职工信息 1.5. 4 -- 修改职工信息 1.6. 5 -- 查找职工 1.7. 6 -- 按职工编号进行排序 1.8. 7 -- 清空文档 2. 退出- 退出管理系统 3. 增加职工,添加新职工,可以批量添加多个职工,职工分为普通员工、经理以及总裁 4. 删除职工,可以按照职工编号进行删除职工 5. 显示所有职工信息,先判断文件是否存在或是否清空,如果存在并且有记录的情况下,展示文件内记录内所有职工的信息 6. 修改职工信息,可以按照用户输入的职工编号,修改职工新的信息,并保存到文件中 7. 查找职工信息,查找有两种方式,一个按职工编号查找,一个按姓名查找,如果用户查找的内容不为空显示该职工信息,如果为空提示不存在要查找的职工 8. 按职工编号进行排序,用户可以将输入的所有职工按照职工编号进行升序或者降序排列,并存入文件 9. 清空文档,可以将文件内当前的记录全部清空。

文件下载

资源详情

[{"title":"( 55 个子文件 66.27MB ) 基于C++多态的职工管理系统.zip","children":[{"title":"基于多态的职工管理系统","children":[{"title":"基于多态的职工管理系统","children":[{"title":"基于多态的职工管理系统.sln <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"基于多态的职工管理系统.pdb <span style='color:#111;'> 716.00KB </span>","children":null,"spread":false},{"title":"基于多态的职工管理系统.ilk <span style='color:#111;'> 718.59KB </span>","children":null,"spread":false},{"title":"基于多态的职工管理系统.exe <span style='color:#111;'> 135.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"基于多态的职工管理系统","children":[{"title":"基于多态的职工管理系统.vcxproj <span style='color:#111;'> 5.99KB </span>","children":null,"spread":false},{"title":"empFile.txt <span style='color:#111;'> 45B </span>","children":null,"spread":false},{"title":"manager.cpp <span style='color:#111;'> 471B </span>","children":null,"spread":false},{"title":"manager.h <span style='color:#111;'> 289B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc140.pdb <span style='color:#111;'> 460.00KB </span>","children":null,"spread":false},{"title":"职工管理系统.obj <span style='color:#111;'> 52.29KB </span>","children":null,"spread":false},{"title":"Employee.obj <span style='color:#111;'> 160.82KB </span>","children":null,"spread":false},{"title":"vc140.idb <span style='color:#111;'> 539.00KB </span>","children":null,"spread":false},{"title":"基于多态的职工管理系统.log <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"workerManager.obj <span style='color:#111;'> 361.18KB </span>","children":null,"spread":false},{"title":"基于多态的职工管理系统.tlog","children":[{"title":"CL.read.1.tlog <span style='color:#111;'> 50.13KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 4.79KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 4.53KB </span>","children":null,"spread":false},{"title":"基于多态的职工管理系统.lastbuildstate <span style='color:#111;'> 319B </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 7.95KB </span>","children":null,"spread":false}],"spread":false},{"title":"manager.obj <span style='color:#111;'> 160.84KB </span>","children":null,"spread":false},{"title":"worker.obj <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"boss.obj <span style='color:#111;'> 160.72KB </span>","children":null,"spread":false}],"spread":true},{"title":"worker.h <span style='color:#111;'> 315B </span>","children":null,"spread":false},{"title":"workerManager.cpp <span style='color:#111;'> 10.22KB </span>","children":null,"spread":false},{"title":"基于多态的职工管理系统.vcxproj.filters <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"boss.h <span style='color:#111;'> 283B </span>","children":null,"spread":false},{"title":"职工管理系统.cpp <span style='color:#111;'> 841B </span>","children":null,"spread":false},{"title":"employee.h <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"workerManager.h <span style='color:#111;'> 830B </span>","children":null,"spread":false},{"title":"boss.cpp <span style='color:#111;'> 440B </span>","children":null,"spread":false},{"title":"Employee.cpp <span style='color:#111;'> 418B </span>","children":null,"spread":false}],"spread":false},{"title":".vs","children":[{"title":"基于多态的职工管理系统","children":[{"title":"v14","children":[{"title":".suo <span style='color:#111;'> 40.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"基于多态的职工管理系统.VC.db <span style='color:#111;'> 8.05MB </span>","children":null,"spread":false}],"spread":true},{"title":".vs","children":[{"title":"基于多态的职工管理系统","children":[{"title":"v15","children":[{"title":"ipch","children":[{"title":"AutoPCH","children":[{"title":"b5834c21e97470d7","children":[{"title":"WORKERMANGER.ipch <span style='color:#111;'> 30.56MB </span>","children":null,"spread":false}],"spread":true},{"title":"818e4db9c87d841d","children":[{"title":"BOSS.ipch <span style='color:#111;'> 29.19MB </span>","children":null,"spread":false}],"spread":true},{"title":"7669d429efa246ea","children":[{"title":"EMPLOYEE.ipch <span style='color:#111;'> 29.19MB </span>","children":null,"spread":false}],"spread":true},{"title":"964dbf8b56fd1a76","children":[{"title":"WORKER.ipch <span style='color:#111;'> 29.19MB </span>","children":null,"spread":false}],"spread":true},{"title":"47ba520981eae803","children":[{"title":"MANAGER.ipch <span style='color:#111;'> 29.19MB </span>","children":null,"spread":false}],"spread":true},{"title":"7cb816b5c02255c0","children":[{"title":"MANAGER.ipch <span style='color:#111;'> 29.38MB </span>","children":null,"spread":false}],"spread":true},{"title":"a2f23cc418ba87a5","children":[{"title":"WORKERMANAGER.ipch <span style='color:#111;'> 29.19MB </span>","children":null,"spread":false}],"spread":true},{"title":"6fd16e1d1516be09","children":[{"title":"WORKERMANAGER.ipch <span style='color:#111;'> 26.13MB </span>","children":null,"spread":false}],"spread":false},{"title":"c42fe7222350028e","children":[{"title":"BOSS.ipch <span style='color:#111;'> 29.38MB </span>","children":null,"spread":false}],"spread":false},{"title":"292e5f11e3afb4e9","children":[{"title":"EMPLOYEE.ipch <span style='color:#111;'> 29.38MB </span>","children":null,"spread":false}],"spread":false},{"title":"a0af254bc7bb0d6d","children":[{"title":"职工管理系统.ipch <span style='color:#111;'> 29.19MB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":".suo <span style='color:#111;'> 58.00KB </span>","children":null,"spread":false},{"title":"Browse.VC.db <span style='color:#111;'> 5.38MB </span>","children":null,"spread":false}],"spread":true},{"title":"v14","children":[{"title":".suo <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"基于多态的职工管理系统.VC.VC.opendb <span style='color:#111;'> 58B </span>","children":null,"spread":false},{"title":"基于多态的职工管理系统.v12.suo <span style='color:#111;'> 36.00KB </span>","children":null,"spread":false},{"title":"成品程序","children":[{"title":"empFile.txt <span style='color:#111;'> 10B </span>","children":null,"spread":false},{"title":"基于多态的职工管理系统.pdb <span style='color:#111;'> 1.18MB </span>","children":null,"spread":false},{"title":"基于多态的职工管理系统.ilk <span style='color:#111;'> 1.32MB </span>","children":null,"spread":false},{"title":"基于多态的职工管理系统.exe <span style='color:#111;'> 148.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明