freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

c語(yǔ)言課設(shè)之人事管理系統(tǒng)-wenkub

2023-04-27 00:12:03 本頁(yè)面
 

【正文】 如下:modify_data(int i) {int c,w1。p++) fprintf(fp,%s\t%s\t%1s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n,wk[p].num,wk[p].name,wk[p].sex,wk[p].age,wk[p].zhiwu,wk[p].
zhicheng,wk[p].zhengzhi,wk[p].xueli,wk[p].renzhisj,wk[p].laiyansj,wk[p].leibie)。amp。 } else {w0=0。 if(w1==1) {printf(\nsuccessful!!\n\nDo yuo want to modify another?\n\n\t\t1\tYes\n\n\t\t2\tBack with save\n\t[ ]\b\b)。} while(k==1)。i++) if(strcmp(,wk[i].num)==0)。}do{printf(\n\nEnter NO. that you want to modify!\n\t\tNO.[ ]\b\b)。(i%10==0)) {printf(\n\nRemember the need modify.\npress any key to continue...)。for(i=0。FILE *fp。p++)fprintf(fp,%s\t%s\t%1s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n,wk[p].num,wk[p].name,wk[p].sex,wk[p].age,wk[p].zhiwu,wk[p].
zhicheng,wk[p].zhengzhi,wk[p].xueli,wk[p].renzhisj,wk[p].laiyansj,wk[p].leibie)。}if((fp=fopen(,w))==NULL) /*******將數(shù)據(jù)保存到文件********/{printf(can not open file\n)。for(i=n+1。printf(how many workers do you want to add(0%d)?:[ ]\b\b\b,Nn)。〈2〉流程圖:〈3〉程序:add() {int i,m,n,k,p。fclose(fp)。input(i)。k=m。printf_back()。其中N是宏定義形式定義的字符,臨時(shí)定義為100,wk[N],為存放人員信息的結(jié)構(gòu)體數(shù)組,而S為臨時(shí)的結(jié)構(gòu)體,用來(lái)保存信息處理過(guò)程中的臨時(shí)數(shù)據(jù)。 char renzhisj[8]。 char zhiwu[15]。定義如下:struct worker {char num[11]。 /*********調(diào)用統(tǒng)計(jì)函數(shù)****************/case 9:exit(0)。 /*********調(diào)用修改數(shù)據(jù)函數(shù)************/case 7:order()。 /*********調(diào)用按姓名搜索函數(shù)*********/case 5:browse()。 /*********調(diào)用添加數(shù)據(jù)函數(shù)***********/case 3:snum()。 /*********調(diào)用新建數(shù)據(jù)文件函數(shù)*******/case 1:del()。} else w1=0。scanf(%d,amp。printf(\t\t7\torder the volume\n\n)。printf(\t\t3\tsearch by number\n\n)。do{printf(\n\t\t\t\tMENU\n)。(1) 添加刪除功能:能根據(jù)學(xué)院人事的變動(dòng)情況,添加刪除記錄;(2) 查詢功能:能根據(jù)編號(hào)和姓名進(jìn)行查詢;(3) 編輯功能(高級(jí)):根據(jù)查詢對(duì)相應(yīng)的記錄進(jìn)行修改,并存儲(chǔ);(4) 統(tǒng)計(jì)功能:能根據(jù)多種參數(shù)進(jìn)行人員的統(tǒng)計(jì)(在職人數(shù)、黨員人數(shù)、女工人數(shù)、高學(xué)歷高職稱人數(shù)(碩士學(xué)位以上或者副教授以上)),統(tǒng)計(jì)要求同時(shí)顯示被統(tǒng)計(jì)者的信息;(5) 排序功能:按照年齡、來(lái)院時(shí)間進(jìn)行排序;(6) 保存功能:能對(duì)輸入的數(shù)據(jù)進(jìn)行相應(yīng)的存儲(chǔ);一、 需求分析:根據(jù)題目要求,職工信息是存放在文件中的,所以應(yīng)該提供相應(yīng)的文件的輸入輸出的功能,在程序中應(yīng)該有添加刪除,查詢,編輯,統(tǒng)計(jì),排序,保存等程序?qū)崿F(xiàn)相應(yīng)的操作,另外菜單式的選擇方式選擇程序的功能也是必須需的。 C語(yǔ)言課程設(shè)計(jì)——人事管理系統(tǒng) 題目要求:人事管理管理系統(tǒng)[要求]某高校主要人員有:在職人員(行政人員、教師、一般員工)、退休人員和臨時(shí)工。另外程序中要求存儲(chǔ)的模塊,采用的方式均為將原文件中的所有數(shù)據(jù)讀入內(nèi)存,在內(nèi)存中處理之后以覆蓋的方式寫入文件存貯,這樣的方法在一定程度上提高了對(duì)數(shù)據(jù)處理的靈活性,較容易理解,但存在處理中遇到以外情況而丟失數(shù)據(jù)的風(fēng)險(xiǎn),另外當(dāng)文件中的數(shù)據(jù)量很大時(shí),這種方法也存在一定的難度,在本程序中將N定為100,基本上能滿足要求;二、 總體設(shè)計(jì):根據(jù)以上需求分析,將程序分成以下幾個(gè)模塊: 新建數(shù)據(jù)文件(build new data); 添加記錄(add data); 刪除記錄(delete data); 按工號(hào)搜索(search by number); 按姓名搜索(search by name); 瀏覽全部數(shù)據(jù)(browse all); 修改數(shù)據(jù)(modify the data); 排序功能(order the volume); 統(tǒng)計(jì)功能(data a volume);系統(tǒng)功能模塊圖如下:三、 詳細(xì)設(shè)計(jì); 主函數(shù):〈1〉需求分析:為使系統(tǒng)執(zhí)行完每部分功能后能夠方便的回到系統(tǒng)主界面,main()函數(shù)設(shè)計(jì)的較簡(jiǎn)單,只包含一個(gè)menu()函數(shù),其余的全部功能都通過(guò)menu()函數(shù)調(diào)用來(lái)實(shí)現(xiàn),并通過(guò)menu()函數(shù)的遞歸調(diào)用實(shí)現(xiàn)返回主界面的功能。printf(\t\t0\tbuild new data\n\n)。printf(\t\t4\tsearch by name\n\n)。printf(\t\t8\tdata a volume\n\n)。n)。}while(w1==1)。break。break。break。break。 /*********退出*************************/default:{printf(input error!! please input a number between 0 and 8)。 char name[10]。 char zhicheng[15]。 char laiyansj[8]。〈2〉、流程圖如下:〈3〉、程序:build() {int i,m,k,p。}printf(how many workers do you want to input(0%d)?:,N)。for(i=0。}for(p=0。printf_back()。FILE *fp。scanf(%d,amp。i=k。 printf_back()。fclose(fp)。n=load()。i=n。getch()。scanf(%s,)。 {k=i。printf_face()。 scanf(%d,amp。 if(w2==1) wk[k]=s。w2==1) { fp=fopen(,w)。} fclose(fp)。do{printf(\nmodify by =\n\n\t\t1\tNO.\n\t\t2\tname\n\t\t3\tsex\n\t\t4\tage\n\t\t5\tzhiwu\n\t\t6\tzhicheng\n\t\t7
\tzhengzhimianmao\n\t\t8\txueli\n\t\t9\trenzhishijian\n\t\t10\tlaiyuanshijian\n\t\t11\trenyuanleibie\n\n\t\t\t[ ]\b\b)。getchar()。break。case 3:printf(the old sex is %s,enter the new sex:,wk[i].sex)。scanf(%s,wk[i].age)。break。case 7:printf(the old zhengzhimianmao is %s,enter the new zhengzhimiainmao:,wk[i].zhengzhi)。scanf(%s,wk[i].xueli)。break。case 11:printf(the old renyuanleibie is %s,enter the new renyuanleibie:,wk[i].leibie)。printf_face()。w1)。int i,j,n,k,m,w0=1,w1=0,w2=0。printf_face()。amp。} printf_one(i)。i=n。 }if(k==1) printf(\n\nNO exit ! please again)。printf(are you sure to delete the data? \t[y/n]\n\t\t[ ]\b\b)。y39。 w1=1。w0)。w2==1) {fpt=fopen(,w)。fclose(fpt)?!?〉流程圖;〈3〉、程序;snum() {FILE *fp。 printf(\n\nEnter the number that you want to search!\n\t\tnumber:[ ]\b\b\b\b\b)。i++)if(strcmp(,wk[i].num)==0) { k=i。printf(\n\nAre you again?\n\t\t1\tagain\n\t\t2\tNO and back\n\t\t[ ]\b\b)。break。amp。if(k!=1)。 switch(w2) {case 1:snum()。/****調(diào)用修改數(shù)據(jù)函數(shù)******/case 3:{printf(\nAre you sure?\n\t\t1\tsure\n\t\t2\tno and back\n\t\t[ ]\b\b)。p=n。break。p++)fprintf(fp,%s\t%s\t%1s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n,wk[p].num,wk[p].name,wk[p].sex,wk[p].age,wk[p].zhiwu,wk[p]. zhicheng,wk[p].zhengzhi,wk[p].xueli,wk[p].renzhisj,wk[p].laiyansj,wk[p].leibie)。scanf(%d,amp。}(7) 按姓名搜索。for(i=0。(i%10==0)) {printf(\n\nRemember the need delete.\npress any key to continue...)。} printf(\tThere are %d record.\n,n+1)。}(9)、排序模塊;〈1〉、[需求分析];該模塊的功能是要求將記錄按照年齡或者來(lái)院時(shí)間進(jìn)行排序,總體結(jié)構(gòu)是先用n=load()函數(shù)將文件中的數(shù)據(jù)調(diào)入內(nèi)存,然后按照選擇法排序,并將結(jié)果顯示出來(lái),然后將排序后的結(jié)果保存。printf(which do you like to follow?\n\t\t1\tage\n\t\t2\tlaiyuanshijian\n\n)。i=n1。 wk[i]=wk[j]。i++) {for(j=i+1。 wk[j]=s。m++){if(fprintf(fp,%s\t%s\t%1s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n,wk[m].num,wk[m].name,wk[m].sex,wk[m].age,wk[m].zhiwu,wk[m]. zhicheng,wk[m].zhengzhi,wk[m].xueli,wk[m].renzhisj,wk[m].laiyansj,wk[m].leibie)==NULL){printf(cannot open the file,press any key to continue......)。}printf(\n\n)?!?〉流程圖;〈3〉、程序data() {int p。 switch(p) {case 1:numduty()。case 3:numwm()。case 5:menu()。 }}該過(guò)程中調(diào)用了四個(gè)函數(shù),numd
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1