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

正文內(nèi)容

c++課程設(shè)計-考勤管理程序設(shè)計與實(shí)現(xiàn)報告-預(yù)覽頁

2025-03-06 07:36 上一頁面

下一頁面
 

【正文】 1 王平 運(yùn)輸部 … … … ID 姓名 部門 11 張華 銷售部 12 王明 銷售部 … … . … 31 王平 運(yùn)輸部 … … … 武漢理工大學(xué)《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計說明書 7 根據(jù)上面的文件系統(tǒng)的設(shè)計, 每種文件的一條記錄分別用一個結(jié)構(gòu)體表示,文件與文件之間的關(guān)系很簡單,文件的記錄是線性的,所以相同的記錄可以用數(shù)組的形式來存儲,也就是線性表的形式。 考勤管理系統(tǒng) 員工信息管理 員工考勤管理 員工信息輸入 員工信息輸出 員工信息添加 員工信息刪除 員工信息修改 考勤信息記錄 考勤信息統(tǒng)計 考勤信息查詢 武漢理工大學(xué)《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計說明書 8 考勤管理模塊由三個小模塊組成,它們的邏輯關(guān)系為:先調(diào)用考勤信息記錄模塊,然后從記錄中抽出一部分?jǐn)?shù)據(jù)進(jìn)行統(tǒng)計。 ② 輸入 2 進(jìn)入考勤管理頁面,對員工的進(jìn)行各種操作。 ① 輸入員工信息:此操作一般只在第一次使用系統(tǒng) 時,初始化員工信息。插入、修改、刪除只能通過輸入ID 方式,并且一次只能操作一個員工的信息。其中每一種又分別按照不同的方式查詢, ; ID 查詢某個人的考勤;。 char name[20]。 int month。 int late。 }。 char name[20]。 //涉及修改,插入,輸出三個函數(shù) 的 聯(lián)合操作時某些位置是否調(diào)用 system(“pause”) struct employee person[MAX_COUNT]。 struct employee temp。 printf(\n\t\t\t\tID\t 姓名 \t 部門 \n\t\t\t\t)。,)。 fprintf(fp1,\t\t\t\t%d\t%s\t%s\n,)。,)。 COUNT=0。person[COUNT].id,person[COUNT].name, person[COUNT].department)。 } //專門用于向存儲員工信息的文件中寫函數(shù) void write_file() { int i。 if(fp1==NULL || fp2==NULL) { printf(cant not open file\n)。 for(i=0。 } fclose(fp1)。 int choice。 //讀員工信息文件 printf(\n\t\t\t\t\t 輸出員工信息 \n)。 printf( \t)。choice)。 for(i=0。 } case(2): { printf(\t\t\t 輸入姓名: )。iCOUNT。 scanf(%d,amp。iCOUNT。 } case(4): { printf(\t\t\t 輸入部門: )。iCOUNT。 } system(pause)。 //讀文件 i=COUNT。 COUNT++。 int j。iCOUNT。j++) person[j]=person[j+1]。 } //修改員工信息 void edit_employee(int id) //員工信息有調(diào)整時,修改員工信息,涉及 //兩個過程:先刪除然后插入,剛好調(diào)用函數(shù) { struct employee someone。 printf(\t 請輸入新的員工信息: \n\t\t\tID\t 姓名 \t 部門 \n\t\t\t)。 武漢理工大學(xué)《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計說明書 19 write_file()。 int id。 printf( \t)。 printf( \n)。 if(choice1 || choice6) { printf(\t 輸入錯誤 ,請重輸 :\t)。 } case(2): { output_employee()。 printf(\t\t\t)。 break。id)。 武漢理工大學(xué)《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計說明書 21 printf(\t 請輸入要刪除的員工 ID:\t)。 break。 if(==) days=+1。 case 3: days=days+31。 case 7: days=days+31。 case 11: days=days+30。 int late。 char name[20]。 system(cls)。,amp。 itoa(days,filename, 10)。 printf(\n\t\tID\t 姓名 \t 遲到 \t 早退 \n)。i++) //對所有的員工打考勤,并寫入對應(yīng)的文件中 { id=person[i].id。late,amp。 fclose(fp)。 int k=0。 char save。 int day。 char early[20]。 struct statistic temp。i++) { 武漢理工大學(xué)《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計說明書 25 stat[i].early_count=0。 printf(\n\t 請輸入起止日期 \n)。,amp。,amp。 for(i=begin_page。 fp=fopen(filename,r)。day,ID,name,late,early)。stat[k].early_count)。, amp。jk。 break。 stat[k].early_count=。 } fclose(fp)。jk。 if(save==39。 scanf(%s,filename)。 for(j=0。 } system(pause)。 //判斷記錄是否為空 int choice。 char late[20]。 struct attendance atten。 printf(\n\t 請輸入日期 :\t)。)。 fp=fopen(filename,r)。day,ID,name,late,early)。 printf( \n)。 武漢理工大學(xué)《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計說明書 29 if(choice1 || choice4) { printf(\t 輸入錯誤 ,請重輸 :\t)。,amp。 } break。 printf(\t\t\tID\t 姓名 \t 遲到 \t 早退 \n)。)。 } } if(flag==0) printf(\t 對不起,沒有此 ID 的員工,謝謝! \n)。 printf(\t\t\tID\t 姓名 \t 遲到 \t 早退 \n)。)。 } } if(flag==0) { printf(\t 對不起,沒有此姓名的員工,謝謝! \n)。 system(pause)。 int flag=0。 char name[20]。 struct date begin,end。 printf(\t\t\t\t\t 查詢某一段時間的考勤 \n)。,amp。 scanf(%d%d%d,amp。 begin_page=puter(begin)。 printf( \t)。choice)。i=end_page。 武漢理工大學(xué)《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計說明書 33 fscanf(fp,%d%d%d%s%s%s%s,amp。 printf(\t\t\t%d\t%d\t%d\n\t\t\t%s\t%s\t%s\t%s\n,year,month, day,ID,name,late,early)。)。 } case(2): { printf(\n\t 請輸入 ID:\t)。 for(k=begin_page。 fp=fopen(filename,r)。day,ID,name,late,early)。)。 } if(flag==0) printf(\t 對不起,沒有此 ID 的員工,謝謝! \n)。 printf(\t\t\tID\t 姓名 \t 遲到 \t 早退 \n)。 //int 轉(zhuǎn)換成 string strcat(filename,.txt)。month,amp。)。 } if(flag==0) printf(\t 對不起,沒有此姓名的員工,謝謝! \n)。 } //查詢的總函數(shù) void quire_attendance() { int choice。 printf(\ \t)。choice)。 break。 } } } //考勤管理的總函數(shù) 武漢理工大學(xué)《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計說明書 37 void management_attendance() { int choice。 printf( \t)。choice)。 break。 break。 start: system(cls)。 printf( \t)。choice)。 management_employee()。 management_attendance()。 printf(\n\t\t\t\t 你真的要退出嗎 (y/n)?\t)。) { printf(\n\t\t\t\t 感謝使用本系統(tǒng) !\n\n\t\t\t\t 再見 !\n)。 } : 輸入信息時以 0 0 0 控制結(jié)束。 武漢理工大學(xué)《數(shù)據(jù)結(jié)構(gòu)》課程設(shè)計說明書 41 添加前的信息為: 添加后的信息為:添加 41 oo pp : 修改前信
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1