資源描述:
《職工管理系統(tǒng)c語(yǔ)言 c語(yǔ)言程序設(shè)計(jì)報(bào)告 職工工資管理系統(tǒng) -》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、職工管理系統(tǒng)c語(yǔ)言C語(yǔ)言程序設(shè)計(jì)報(bào)告職工工資管理系統(tǒng)-導(dǎo)讀:就愛(ài)閱讀網(wǎng)友為您分享以下“C語(yǔ)言程序設(shè)計(jì)報(bào)告職工工資管理系統(tǒng)-”的資訊,希望對(duì)您有所幫助,感謝您對(duì)92to.com的支持!exit(1);}fprintf(fp,"職工編號(hào)職工姓名基本工資扣款獎(jiǎng)金應(yīng)發(fā)工資稅金實(shí)發(fā)工資總工資");printf("請(qǐng)輸入你要修改的職工的編號(hào):");scanf("%d",&id);10Sleep(500);printf("t查找相關(guān)數(shù)據(jù).");for(i=0;i<=15;
2、i++){Sleep(250);printf(".");}for(i=0;i<shuru;i++){if(per[i].num==id)//如果找到了就執(zhí)行下面語(yǔ)句,找不到直接回主界面10{printf("輸入新職工編號(hào):");//輸入職工編號(hào)fflush(stdin);scanf("%d",&per[i].num);printf("輸入新職工姓名:");//輸入職工姓名fflush(stdin);gets(per[i].name);printf("輸入
3、職工的工資信息");printf("------------------------------");printf("基本工資:");scanf("%f",&per[i].paid);10fflush(stdin);printf("扣款:");scanf("%f",&per[i].discount);fflush(stdin);printf("獎(jiǎng)金:");scanf("%f",&a
4、mp;per[i].extra);printf("------------------------------");per[i].sum=per[i].paid-per[i].discount+per[i].extra;per[i].realpaid=per[i].paid-per[i].discount;fprintf(fp,"%6d%8s%5.1ft%5.1ft%3.1ft%5.1ft%4.1ft",per[i].num,per[i].name,per[i].paid,per[i].discount,p
5、er[i].extra,per[i].realpaid,per[i].sum);10}}}voidFindper(structpersonper[])//查詢職工工資信息{inti=0,j=0,id;//循環(huán)變量和用于接收職工編號(hào)printf("請(qǐng)輸入你要查詢的職工編號(hào):");scanf("%d",&id);for(i=0;i<shuru;i++){if(per[i].num==id)10//如果找到你查詢的數(shù)據(jù)就執(zhí)行下面語(yǔ)句{//如果找不到。直接回程序主界%per[i].sum=per[i].paid-per
6、[i].discount+per[i].extra;per[i].realpaid=per[i].paid-per[i].discount;printf("職工編號(hào)職工姓名基本工資扣款獎(jiǎng)金應(yīng)發(fā)工資稅金實(shí)發(fā)工資總工資");printf("%6d%8s%5.1ft%5.1ft%3.1ft%5.1ft%5.1ft%5.1ft%4.1ft",per[i].num,per[i].name,per[i].paid,per[i].discount,per[i].extra,per[i].gotpaid,p
7、er[i].fare,per[i].realpaid,per[i].sum);system("pause");}}10}voidInsertper(structpersonper[])//插入職工工資信息{intflag=1;pp=per;inti,id;if((fp=fopen("insertdata.sys","wb+"))==NULL){printf("Cannotopenfilestrikeanykeyexit!");getch();10exit(1);}fprintf(fp,
8、"