C语言 课程设计 教师工资管理系统(职工工资管理系统)(3)

2019-04-15 15:33

{ if (p1->next!=NULL) p1=p1->next; else { printf(\ 查找不到相关数据!\\n\ break; } } if (p1->num==num) { system(\ printf(\ >>>>>欢迎使用教师工资管理系统Beta1.2<<<<<\\n\ printf(\原信息如下:---------------------------------\\n\ printf(\教工号 姓名 性别 单位名称 家庭住址 联系电话\\n\ printf(\ %-4d %-13s %s %-19s %-19s%-14ld\\n\->phone); printf(\电话费 水电费 房租 个人所得税 卫生费 公积金 合计扣款\\n\ printf(\ %-10.1lf %-10.1lf %-10.1lf\\n\c,p1->cost_rent,p1->cost_tax,p1->cost_weisheng,p1->cost_gongjijin,p1->cost_all); printf(\基本工资 津贴 生活补贴 应发工资 实发工资\\n\ printf(\%-13.1lf %-13.1lf %-13.1lf %-13.1lf %-13.1lf\\n\>yingfa_salary,p1->shifa_salary); printf(\ printf(\ *******************************************************\\n\ printf(\ * 1.教师号 2.姓名 *\\n\ printf(\ * 3.性别 4.单位名称 *\\n\ printf(\ * 5.家庭住址 6.联系电话 *\\n\ printf(\ * 7.基本工资 8.津贴 *\\n\ printf(\ * 9.生活补贴 10.电话费 *\\n\ printf(\ * 11.水电费 12.房租 *\\n\ printf(\ * 13.所得税 14.卫生费 *\\n\ printf(\ * 15.公积金 *\\n\ printf(\ *******************************************************\\n\ do { printf(\ 请选择要修改的数据:\ scanf(\ while (i>15||i<1)

{ printf(\ 输入有误!请重新输入:\ scanf(\ } switch(i) { case 1:printf(\ 请输入新教师号:\ case 2:printf(\ 请输入新姓名:\ case 3:printf(\ 请输入新性别:\ case 4:printf(\ 请输入新单位名称:\ case 5:printf(\ 请输入新家庭住址:\ case 6:printf(\ 请输入新联系电话:\ case 7:printf(\ 请输入新基本工资:\ case 8:printf(\ 请输入新津贴:\ case 9:printf(\ 请输入新生活补贴:\ case 10:printf(\ 请输入新电话费:\ case 11:printf(\ 请输入新水电费:\ case 12:printf(\ 请输入新房租:\ case 13:printf(\ 请输入新所得税:\ case 14:printf(\ 请输入新卫生费:\ case 15:printf(\ 请输入新公积金:\ default:break; } p1->yingfa_salary=p1->de_salary+p1->de_jintie+p1->de_shenghuobutie; p1->cost_all=p1->cost_phone+p1->cost_water_elec+p1->cost_rent+p1->cost_tax+p1->cost_weisheng+p1->cost_gongjijin; p1->shifa_salary=p1->yingfa_salary-p1->cost_all; printf(\ 继续修改其他数据吗?(y或n):\ scanf(\ }while (m=='y'||m=='Y'); p2=head; if((fp=fopen(\ { printf(\ 文件不存在!按下任意键返回主菜单...\ } else

{ fwrite(head,LEN-4,1,fp); do { p2=p2->next; fwrite(p2,LEN-4,1,fp); }while(p2->next!=NULL); printf(\修改后数据如下:---------------------------------\\n\ printf(\教工号 姓名 性别 单位名称 家庭住址 联系电话\\n\ printf(\ %-4d %-13s %s %-19s %-19s%-14ld\\n\->phone); printf(\电话费 水电费 房租 个人所得税 卫生费 公积金 合计扣款\\n\ printf(\%-10.1lf %-10.1lf %-10.1lf %-10.1lf %-10.1lf %-10.1lf %-10.1lf \\n\l); printf(\基本工资 津贴 生活补贴 应发工资 实发工资\\n\ printf(\%-13.1lf %-13.1lf %-13.1lf %-13.1lf %-13.1lf\\n\>yingfa_salary,p1->shifa_salary); printf(\ } fclose(fp); } break; case 2:printf(\ 请输入要修改的教师姓名:\ gets(name); while (strcmp(p1->name,name)!=0) { if (p1->next!=NULL) p1=p1->next; else { printf(\ 查找不到相关数据!\\n\ break; } } if (strcmp(p1->name,name)==0) { system(\ printf(\ >>>>>欢迎使用教师工资管理系统Beta1.2<<<<<\\n\ printf(\原信息如下:---------------------------------\\n\

printf(\教工号 姓名 性别 单位名称 家庭住址 联系电话\\n\ printf(\ %-4d %-13s %s %-19s %-19s%-14ld\\n\->phone); printf(\电话费 水电费 房租 个人所得税 卫生费 公积金 合计扣款\\n\ printf(\%-10.1lf %-10.1lf %-10.1lf %-10.1lf %-10.1lf %-10.1lf %-10.1lf \\n\l); printf(\基本工资 津贴 生活补贴 应发工资 实发工资\\n\ printf(\%-13.1lf %-13.1lf %-13.1lf %-13.1lf %-13.1lf\\n\>yingfa_salary,p1->shifa_salary); printf(\ printf(\ *******************************************************\\n\ printf(\ * 1.教师号 2.姓名 *\\n\ printf(\ * 3.性别 4.单位名称 *\\n\ printf(\ * 5.家庭住址 6.联系电话 *\\n\ printf(\ * 7.基本工资 8.津贴 *\\n\ printf(\ * 9.生活补贴 10.电话费 *\\n\ printf(\ * 11.水电费 12.房租 *\\n\ printf(\ * 13.所得税 14.卫生费 *\\n\ printf(\ * 15.公积金 *\\n\ printf(\ *******************************************************\\n\ do { printf(\ 请选择要修改的数据:\ scanf(\ while (i>15||i<1) { printf(\ 输入有误!请重新输入:\ scanf(\ } switch(i) { case 1:printf(\ 请输入新教师号:\ case 2:printf(\ 请输入新姓名:\ case 3:printf(\ 请输入新性别:\ case 4:printf(\ 请输入新单位名称:\ case 5:printf(\ 请输入新家庭住址:\ case 6:printf(\ 请输入新联系电话:\ case 7:printf(\ 请输入新基本工资:\

case 8:printf(\ 请输入新津贴:\ case 9:printf(\ 请输入新生活补贴:\ case 10:printf(\ 请输入新电话费:\ case 11:printf(\ 请输入新水电费:\ case 12:printf(\ 请输入新房租:\ case 13:printf(\ 请输入新所得税:\ case 14:printf(\ 请输入新卫生费:\ case 15:printf(\ 请输入新公积金:\ default:break; } p1->yingfa_salary=p1->de_salary+p1->de_jintie+p1->de_shenghuobutie; p1->cost_all=p1->cost_phone+p1->cost_water_elec+p1->cost_rent+p1->cost_tax+p1->cost_weisheng+p1->cost_gongjijin; p1->shifa_salary=p1->yingfa_salary-p1->cost_all; printf(\ 继续修改其他数据吗?(y或n):\ scanf(\ }while (m=='y'||m=='Y'); p2=head; if((fp=fopen(\ { printf(\ 文件不存在!按下任意键返回主菜单...\ } else { fwrite(head,LEN-4,1,fp); do { p2=p2->next; fwrite(p2,LEN-4,1,fp); }while(p2->next!=NULL); printf(\修改后数据如下:---------------------------------\\n\ printf(\教工号 姓名 性别 单位名称 家庭住址 联系电话\\n\ printf(\ %-4d %-13s %s %-19s %-19s%-14ld\\n\->phone); printf(\电话费 水电费 房租 个人所得税 卫生费 公积金 合


C语言 课程设计 教师工资管理系统(职工工资管理系统)(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:毕业后的五年拉开大家差距的原因在哪里 - 副本

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: