资源描述:
《华工职工管理系统,源代码(chinese workers and staff management system, source code)》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、华工职工管理系统,源代码(Chineseworkersandstaffmanagementsystem,sourcecode)/*Clanguagecurriculumdesigntask:stafffilemanagementsystemdesign.#include#include#include#include#include#defineMAX_NUM95Structworker{IntID;CharBirth[20];CharSex[20];CharName[30];C
2、harTelenum[20];IntWage;CharDepartment[30];CharJob[30];}Work[MAX_NUM];Void,main(){Void(showmenu);/**/mainmenufunctionstatementVoid(append);/**/addfunctionstatementVoid(search);/**/statementsearchfunctionVoid(output);/**/statementoutputfunctionVoid(modify);/**/modificationfunctionstatementVo
3、id(deletes);/**/deletefunctionstatementVoid(save);/**/savethefunctionstatementVoid(read);/**/statemententryfunctionVoid(sort);/**/depositstatementsortingfunctionIntm;Showmenu();Scanf("%d",&m);For((m>=0&&m<=8;){Switch(m){Case1:(append);/*userselectionmenu1,programexecutionaddeddatafilefunct
4、ion.Break;Case2:(search);/*userselectionmenu2,programexecutiondatasearchingfunction.Break;Case3:(modify);/*userselectionmenu3,programexecutiondatamodificationfunction.Break;Case4:(deletes);/*userselectionmenu4,programexecutiondatadeletefunction.Break;Case5:(output);/*userselectionmenu5,pro
5、gramexecutionoutputdatarecordingfunction.Break;Case6:(save);/*userselectionmenu6,programexecutiondatastoragefunction.Break;Case7:(read);/*userselectionmenu7,executionoftheprogramreadsthefilefunction.Break;Case8:(sort);/*userselectionmenu8,programexecutiondatasortingfunction.Break;Case0:exi
6、t(0);/*usernumber3menuprogramexecutionfunction*/booksPrintf(operationiscomplete,pleaseselectagain!");Default:printf("error,reenter")}Showmenu();Scanf("%d",&m);}}Themainmenufunction*//*Void(showmenu)/*displaythemainmenu,andreturntotheuserselectedmenuitemnumber.{Printf("***************
7、*****************************************************");Printf("^^^^^^^^^^^^^^^^^^^^^^^workersfilemanagementsystem^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");Printf("----------------------------------Designer:ChenWenkai---------------------);Printf("****************