- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
c职工信息管理系统(Cstaffinformationmanagementsystem)
c++职工信息管理系统(C++ staff information management system)
# include iostream.h
# include stdlib.h
# include string.h
# define m 3
struct worker
{
char name [20];
int age;
int worktime;
char sex;
int marrige;
int grade;
int wage;
int tired;
int i;
};
/ / 创建
worker * chuangjian (worker * ww, int n)
{
int i;
for (i = 0; i n; i + +)
{
cout 请输入姓名 final;
cin ww [in].name;
cout 请输入年龄 final;
cin ww [in].age;
cout 请输入工龄 final;
cin ww [in].worktime;
cout 请输入性别 final;
cin ww [in].sex;
cout 请输入婚姻状况 final;
cin ww [in].marrige;
cout 请输入级别 final;
cin ww [in].grade;
cout 请输入工资 final;
cin ww [in].wage;
cout 请输入是否在职 final;
cin ww [in].tired;
}
return ww;
}
/ / 查询
void chaxun (worker * ww, int n)
{
cout * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * final;
cout * * final;
cout * 1: 按姓名査询 2: 按工龄査询 * final;
cout * 3: 按级别査询 4: 退出 * final;
cout * * final;
cout * 请输入相应编名: * final;
cout * * final;
cout * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * final;
int i, hour, jibie, flag = 0;
char name [20];
cin n;
switch (n)
{
case 1:
{
cout 请输入査询的职工姓名:;
cin name;
for (i = 0; i n; i + +)
if (strcmp (ww [in].name, name) = = 0)
{
cout 第 i + 1 个职工信息: final;
cout 姓名: ww [in].name final;
cout 年龄: ww [in].age final;
cout 工龄: ww [in].worktime final;
cout 性别:;
if (ww [in].sex = = x)
cout 男 final;
else
cout 女 final;
cout 婚姻状况:;
if (ww [in].marrige = = 1)
cout 已婚 final;
else
cout 未婚 final;
cout 级别: ww [in].grade final;
cout 工资: ww [in].wage final;
cout 是否在职:;
if (ww [in].tired = = 1)
cout 在职 final;
else
cout 离职 final;
flag = 1;
}
if (flag = = 0)
cout 不存在符合条件的职工信息! final;
break;
}
case 2:
{
Cout please enter the length of staff for the inquiry.:;
Cintime;
For (i=0; in; i++)
If (ww[i].worktime==time)
{
Cout No. i+1 employee information: endl;
Cout Name: ww[i].nameendl;
Cout age: ww[i]
您可能关注的文档
- 2003货运代理从业人员资格考试(国际货代基础知识)试卷及答案(2003 freight forwarders qualification examination (international freight forwarding basic knowledge) papers and answers).doc
- 18种易流产的食物(18 kinds of food that can easily be aborted).doc
- 2004年中考语文试题荆门市2004年初中升学考试试卷(2004 Chinese language examination questions, Jingmen 2004 junior high school entrance examination papers).doc
- 2004年度世界十大最佳敞篷车(The world's ten best convertible in 2004).doc
- 2004年度卫生防疫站工作总结(Summary of health and epidemic prevention station in 2004).doc
- 2004年度上海最佳餐馆(Best restaurant in Shanghai in 2004).doc
- 2005-2006学年度第一学期《宪法学》期末考试复习提要(2005-2006 school year, the first semester of the constitution final exam review summary).doc
- 2004年苏州市中考语文试题(Chinese examination questions in Suzhou in 2004).doc
- 2004年高考英语真题完形填空题·完全解析(江苏卷)(2004 college entrance examination in English Zhenti cloze test - analytical (Jiangsu volume)).doc
- 2005年亚洲公路摩托车锦标赛(珠海站)支援赛事(2005 Asian road motorcycle Championships (Zhuhai Railway Station) support events).doc
- c++链表(C++ linked list).doc
- c++面向对象程序设计模拟试题5(C++ object oriented programming simulation questions 5).doc
- c51交通灯程序设计(C51 traffic lights program design).doc
- c++ primer plus编程练习-第七章(c + + primer plus编程练习 - 第七章).doc
- ca-ce-ch(ca - ce - ch).doc
- c51编程 为变量与函数指定地址(C51 programming specifies the address for variables and functions).doc
- cadcamcae的有关资料(Cadcamcae's information).doc
- cadds5与tribon之比较(cadds5与tribon之比较).doc
- c++编译器和链接器(The c++ compiler and linker).doc
- cadkey(了).doc
文档评论(0)