


版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、成績(jī)12信計(jì) 2013-2014 (一)數(shù)據(jù)結(jié)構(gòu)課 程設(shè)計(jì)設(shè)計(jì)題目員工信息管理系統(tǒng)設(shè)計(jì)時(shí)間2014.1.62014.1.10學(xué)生姓名葛考學(xué)生學(xué)號(hào)20120402127所在班級(jí)12精算指導(dǎo)教師劉風(fēng)華徐州工程學(xué)院數(shù)學(xué)與物理科學(xué)學(xué)院題目員工信息管理系統(tǒng)一、需求分析員工信息管理系統(tǒng)設(shè)計(jì),具體功能如下:1、系統(tǒng)以菜單方式工作,應(yīng)為用戶(hù)提供清晰的使用提示,依據(jù)用戶(hù)的選擇來(lái)進(jìn)行 各種處理,并且在此過(guò)程中能夠盡可能的兼容用戶(hù)使用過(guò)程中的輸入異常情 況。2、 員工信息錄入系統(tǒng)(員工信息用文件保存),注意員工按員工編號(hào)進(jìn)行區(qū)分,即每個(gè)員工的員工編號(hào)都是唯一的,不允許出現(xiàn)兩個(gè)員工或員工編號(hào)相同的情況。3、可對(duì)員工信
2、息進(jìn)行查詢(xún), 具體分為:按姓名查詢(xún)、按員工號(hào)查詢(xún)、按生日查詢(xún);4、可對(duì)員工信息進(jìn)行刪除;5、可對(duì)員工信息進(jìn)行修改,但應(yīng)注意員工號(hào)不能修改,修改應(yīng)逐個(gè)進(jìn)行,一個(gè)員 工記錄的更改不應(yīng)影響其他的員工記錄;6、 可對(duì)全部的員工信息進(jìn)行顯示v (員工信息瀏覽),注意員工信息的顯示規(guī)范;員工信息應(yīng)包括姓名、員工編號(hào)、性別、年齡、生日、學(xué)歷、職務(wù)、聯(lián)系電話(huà)、住址。二、概要設(shè)計(jì)2.1、抽象數(shù)據(jù)類(lèi)型ADT List數(shù)據(jù)對(duì)象:D=ai|ai ElemSfet,2, n;n>=0,數(shù)據(jù)關(guān)系:R1=<ai-1 ,ai>|ai-1 , ai Dj=1,2, ,基本操作:Init List (&
3、L);操作結(jié)果:構(gòu)造一個(gè)空的線(xiàn)性表L 0DestroyList (&L );初始條件:線(xiàn)性表L存在。操作結(jié)果:銷(xiāo)毀線(xiàn)性表LoLocateElem(L, I,& e);初始條件:線(xiàn)性表 L存在,1<i<Listlength(L)。操作結(jié)果:用e返回線(xiàn)性表L中第i個(gè)數(shù)據(jù)元素的值ClearList ( &L);初始條件:線(xiàn)性表L存在。操作結(jié)果:將線(xiàn)性表L重置為空表。ADT Graph2.2、程序流程系統(tǒng)的執(zhí)行從菜單的選擇幵始,依據(jù)用戶(hù)的選擇進(jìn)行相應(yīng)的處理,直到用戶(hù) 選擇退出系統(tǒng)為止。其間應(yīng)對(duì)用戶(hù)的選擇做出判斷與異常處理。系統(tǒng)的流程如圖1所示:開(kāi)制1 1 /11ri
4、StL.XXXXftAQE.i拿atV JX rTTL丄5.X頁(yè)工X9i£XX出1di51L1y y y圖i員工信息管理系統(tǒng)流程圖三、詳細(xì)設(shè)計(jì)3.1函數(shù)構(gòu)成(1 )主函數(shù):void main ();(2 )文件讀入函數(shù): void read data ();(3 )文件寫(xiě)入函數(shù): void write data ();(4)菜單函數(shù) 函數(shù)原型: void Menu () 功能:此函數(shù)的功能為依據(jù)用戶(hù)選擇的功能來(lái)進(jìn)行相應(yīng)的處理,直到用戶(hù)選 擇退出系統(tǒng)為止,包括員工信息的查詢(xún)、更新、列表與退出管理;(5)信息查詢(xún)函數(shù) 函數(shù)原型: void chaxun () 功能:該函數(shù)的功能是按照用戶(hù)
5、的選擇進(jìn)行不同方式的查找,本程序?qū)崿F(xiàn)了 按三種方式進(jìn)行查找,包括按編號(hào)、姓名、生日查找;(6)信息更新函數(shù) 函數(shù)原型: void gengxin () 功能:此函數(shù)的功能為使用戶(hù)修改記錄。首先判斷用戶(hù)要修改的記錄是否存 在,因?yàn)橹挥袉T工編號(hào)是唯一的,所以根據(jù)員工編號(hào)進(jìn)行查找。若存在則用用戶(hù) 輸入的新的信息替換原信息;若不存在則函數(shù)結(jié)束。在此函數(shù)中要注意的是文件的打幵方式應(yīng)為”rb+因?yàn)樵谶@個(gè)函數(shù)中不僅要讀文件,還要向文件中寫(xiě)入數(shù)據(jù),所以要用讀寫(xiě)的方式打開(kāi)二進(jìn)制文件;(7)信息一覽函數(shù) 函數(shù)原型: void liebiao () 功能:此函數(shù)的功能為從文件中依次取出每條記錄并將其顯示出來(lái)。因?yàn)橹?/p>
6、需讀文件不需要向文件中寫(xiě)入數(shù)據(jù),所以文件的打開(kāi)方式是只讀。3.2 模塊程序清單(詳細(xì)程序見(jiàn)附錄)1、員工信息的結(jié)構(gòu)體:Typedef struct emp long int num;/ 編號(hào)char name20;/ 姓名int age;/ 年齡char sex4;/ 性別char birthday10;/ 生日char tel15; / 電話(huà) char edu8;/ 學(xué)歷char pos20;/ 職務(wù)char add30;/ 住址struct emp *next;2、菜單函數(shù):void menu(void) char i,lj100; int flog;time_t T;struct tm
7、* timenow;time ( &T );timenow = localtime ( &T ); flog=0;while(1)system("cls"); printf("nnnnn");printf("iprintf("員工信息管理系統(tǒng) 一n)1|n");printf("|n");printf("|n");printf("|1. 員工信息查詢(xún)n");printf("|n");printf("|n");pr
8、intf("|n");printf(" 丨2.員工信息更新n");printf("|n");printf("|n");printf("|n");printf(" |3. 員工信息列表n");printf("|n");printf("|n");printf("|n");printf(" |0. 退出管理系統(tǒng)n");printf("|n");printf("|n"
9、;);printf("|n");printf("1n);1printf("%s", asctime (timenow) );printf(" 請(qǐng)輸入您的選擇(數(shù)字 0-3 ):n");scanf("%c",&i);gets(lj); if(lj0)i='a'switch(i) case '1':chaxun();break;case '2':gengxin();break;case '3':liebiao();break;case &
10、#39;0':flog=1;break; default:printf(" 輸入有誤,請(qǐng)按回車(chē)鍵重新輸入 n");gets(lj);break;if(flog)break;3、信息查詢(xún)函數(shù):void chaxun()char i,lj100; int flog; time_t T; struct tm * timenow;time ( &T );timenow = localtime ( &T ); flog=0;while(1)system("cls"); printf("nnnnn");printf(&qu
11、ot;|員工信息查詢(xún)系統(tǒng)1printf("|In");printf("|n");printf("|n");printf("|1. 按照編號(hào)查詢(xún)|n");printf("|n");printf("|n");printf("|n");printf("|2. 按照姓名查詢(xún)|n");printf("|In");printf("|In");printf("|n");printf(&quo
12、t;|3. 按照生日查詢(xún)|n");printf("|n");printf("|n");printf("|0. 退出管理系統(tǒng)|n");printf("|n");printf("|n");printf("|n");printf("1ni1printf("%s", asctime (timenow) );printf(" 請(qǐng)輸入您的選擇(數(shù)字 0-3 ):n");scanf("%c",&i);g
13、ets(lj); if(lj0)i='a'switch(i)case '1':bianhao();break; case '2':xingming();break;case '3':shengri();break; case '0':flog=1;break; default:printf(" 輸入有誤,請(qǐng)重新輸入 n");gets(lj);break;if(flog)break;4、信息更新函數(shù):void gengxin()char i,lj100;time_t T;int flog;stru
14、ct tm * timenow;time ( &T );timenow = localtime ( &T ); flog=0;while(1)system("cls");printf("nnnnn");printf("i員工信息更新系統(tǒng)一-n)i1printf("|n");printf("|n");printf("|n");printf("|1.員工信息添加|n");printf("|n");printf("|n&quo
15、t;);printf("|n");printf("|2.員工信息刪除|n");printf("|n");printf("|n");printf("|n");printf("|3.員工信息修改|n");printf("|n");printf("|n");printf("|n");printf("|0.退出管理系統(tǒng)|n");printf("|n");printf("|n&
16、quot;);n");prin tf("|printf("1昨printf(" %s",asctime (timenow) );printf(" 請(qǐng)輸入您的選擇(數(shù)字 0-3 ):n"); scanf("%c",&i);gets(lj);if(lj0)i='a'switch(i) case '1':tianjia();break;case '2':shanchu();break;case '3':xiugai();break;case
17、 '0':flog=1;break;default:printf(" 輸入有誤,請(qǐng)重新輸入 n");gets(lj);break;if(flog)break;5、信息一覽函數(shù):void liebiao()char lj100; struct emp *p; p=head; system("cls");if(head=NULL)printf(" 查找不到信息 n");menu();printf("員工信息列表n"tprintf("編號(hào)tt姓名tt年齡tt性別tt出生年月tt電話(huà)tt學(xué)歷tt
18、職務(wù)tt住址 :n");if(head!=NULL) while(p!=NULL) display(p);p=p->next; printf("n 按回車(chē)鍵返回主菜單 n");gets(lj);四、調(diào)試分析4.1 、時(shí)間復(fù)雜度分析在源程序的各個(gè)模塊,時(shí)間復(fù)雜讀為 O(n) ,并且隨著輸入信息量的增加,從 而時(shí)間復(fù)雜度也逐漸增加。4.2 、問(wèn)題解決在程序設(shè)計(jì)過(guò)程中,本程序采用兩種方式進(jìn)行數(shù)據(jù)輸入,一種是由用戶(hù)手動(dòng) 輸入數(shù)據(jù), 另一種是由文本文件數(shù)據(jù)導(dǎo)入 1的方式。但在文本導(dǎo)入過(guò)程中, 導(dǎo)入的 是二進(jìn)制文件,但由于復(fù)雜程度較高,從而根據(jù)所查資料進(jìn)行修改,采用導(dǎo)入
19、文 本文件。在結(jié)果輸出上,由于輸出的是黑屏,所以經(jīng)過(guò)查閱資料,運(yùn)用system函數(shù)對(duì)輸出結(jié)果的頁(yè)面進(jìn)行修飾。4.3、設(shè)計(jì)收獲在做實(shí)驗(yàn)前,一定要將課本上的知識(shí)吃透,因?yàn)檫@是做實(shí)驗(yàn)的基礎(chǔ),否則, 在做設(shè)計(jì)程序?qū)嶒?yàn)時(shí),這將使你做的難度加大,浪費(fèi)寶貴的時(shí)間,使你事倍功半。 做實(shí)驗(yàn)時(shí),一定要親力親為,務(wù)必要將每個(gè)步驟,每個(gè)細(xì)節(jié)弄清楚,弄明白。實(shí) 驗(yàn)后,還要復(fù)習(xí),思考,這樣,你的印象才深刻,記得才牢固,否則,過(guò)后不久 你就會(huì)忘得一干二凈,這還不如不做。通過(guò)這次程序設(shè)計(jì)的實(shí)驗(yàn),使我們學(xué)到了 不少實(shí)用的知識(shí),更重要的是,做實(shí)驗(yàn)的過(guò)程,思考問(wèn)題的方法,這與做其他的 實(shí)驗(yàn)是通用的,真正使我們們受益匪淺。五、測(cè)試結(jié)
20、果1、菜單函數(shù)的測(cè)試結(jié)果如圖 2I曲zjnlx員工倍息詡里累現(xiàn)皿5工館*查詢(xún)也員工信息更新氛員工信啟j蟻氛迪出管理系統(tǒng)請(qǐng)舸人您的魚(yú)擇數(shù)扣-叮lliu bvc 上夕 15: 12; 14 20131圖22、信息查詢(xún)函數(shù)的測(cè)試結(jié)果如圖3圖33、信息更新函數(shù)測(cè)試結(jié)果如圖4圖4六、用戶(hù)使用說(shuō)明本程序?qū)嵲诃h(huán)境下通過(guò)編譯并執(zhí)行。用戶(hù)根據(jù)提示信息進(jìn)行選擇并操作。七、附錄源程序:#include <stdio.h>#include <malloc.h>#include <stdlib.h>#include <windows.h>/ 清屏函數(shù)頭文件#include
21、 <string.h>#include <time.h>#include <io.h>#define LEN sizeof(struct emp)#define DATA "employee.txt" struct emplong int num;/ 編號(hào)char name20;/ 姓名int age;/ 年齡char sex4;/ 性別char birthday10;/ 生日char tel15; /電話(huà)char edu8;/ 學(xué)歷char pos20;/ 職務(wù)char add30;/ 住址struct emp *next;struct
22、 emp *head=NULL; int t=0;void menu();void gengxin();void tianjia();void insert(struct emp *em);void display(struct emp *p);void liebiao();void chaxun();void bianhao();void shengri();void xingming();void readDate();void writeDate();void freeAll();void shanchu();void change();void devise(struct emp *p
23、);void main()struct emp *head=NULL; head=(struct emp *)malloc(LEN); head->next=NULL;system("color F1");system("mode con: cols=500 lines=1000"); readDate();menu(); system("cls"); printf("nnnnnnnnnnnnnnnnnnn");printf(" 謝謝使用,再見(jiàn) n"); void menu(void)ch
24、ar i,lj100; int flog;time_t T;struct tm * timenow;time ( &T );timenow = localtime ( &T ); flog=0;while(1) system("cls"); printf("nnnnn");printf("|員工信息管理系統(tǒng)n")1printf("|n");printf("|n");printf("|n");printf(" |1. 員工信息查詢(xún)n");pr
25、intf("|n");printf("|n");printf("|n");printf(" |2. 員工信息更新n");printf("|n");printf("|n");printf("|n");printf(" |3. 員工信息列表n");printf("|n");printf("|n");printf("|n");printf("|0. 退出管理系統(tǒng)n"
26、;);printf("|n");printf("|n");printf("|n");1|. 1printf("n );printf("%s", asctime (timenow) );printf("請(qǐng)輸入您的選擇(數(shù)字 0-3 ):n");scanf("%c",&i);gets(lj);if(lj0)i='a'switch(i)case '1':chaxun();break;case '2':gengxin(
27、);break;case '3':liebiao();break;case '0':flog=1;break;default:printf(" 輸入有誤,請(qǐng)按回車(chē)鍵重新輸入 n");gets(lj);break; if(flog)break;void tianjia()struct emp *p,*p1;char lj100;p=NULL;p1=head;printf(" 請(qǐng)輸入第 %d 個(gè)員工的信息 .n",t+1); p=(struct emp *)malloc(LEN);if(p=NULL)printf("
28、 分配空間失敗 "); exit(0); printf(" 請(qǐng)輸入員工的編號(hào) :n"); scanf("%ld",&p->num);while(p1!=NULL)&&(p->num!=p1->num)p1=p1->next;if(p1!=NULL)if(p->num=p1->num)printf(" 編號(hào)已經(jīng)存在 ,請(qǐng)重新輸入 ,按回車(chē)鍵繼續(xù) :n"); free(p);gets(lj);getchar(); printf("請(qǐng)輸入員工的姓名:n"
29、;);scanf("%s",p->name);printf("請(qǐng)輸入員工的年齡:n");scanf("%d",&p->age);printf("請(qǐng)輸入員工的性別:n");scanf("%s",p->sex);printf(" 請(qǐng)輸入員工的出生年月 :n"); scanf("%s",p->birthday);printf("請(qǐng)輸入員工的電話(huà):n");scanf("%s",p->te
30、l);printf("請(qǐng)輸入員工的學(xué)歷:n");scanf("%s",p->edu);printf("請(qǐng)輸入員工的職務(wù):n");scanf("%s",p->pos);printf("請(qǐng)輸入員工的住址:n");scanf("%s",p->add);insert(p); printf(" 輸入的員工信息為 :n");printf(":n");printf("編號(hào)tt姓名tt年齡tt性別tt出生年月tt電話(huà)tt學(xué)歷
31、tt 職務(wù)tt 住址:n");display(p);printf("按回車(chē) 鍵繼續(xù) n");writeDate();gets(lj);getchar(); void insert(struct emp *em)struct emp *p0,*p1,*p2; p1=head; p0=em;if(head=NULL)head=p0;p0->next=NULL;elsewhile(p0->num > p1->num)&&(p1->next!=NULL) p2=p1;p1=p1->next; if(p0->num&
32、lt;=p1->num)if(head=p1)head=p0;else p2->next=p0;p0->next=p1; else p1->next=p0; p0->next=NULL; t+; void display(struct emp *p) printf("%ldtt%stt%dtt%stt%stt%stt%stt%stt%sn",p->n um,p->name,p->age,p->sex,p->birthday,p->tel,p->edu,p->pos,p->add); void
33、 liebiao() char lj100; struct emp *p; p=head; system("cls"); if(head=NULL)printf(" 查找不到信息 n");menu(); printf("員工信息列表n");printf("編號(hào)tt姓名tt年齡tt性別tt出生年月tt電話(huà)tt學(xué)歷tt 職務(wù)tt住址 :n");if(head!=NULL)while(p!=NULL) display(p);p=p->next; printf("n 按回車(chē)鍵返回主菜單 n");g
34、ets(lj);void chaxun()char i,lj100;int flog;time_t T;struct tm * timenow;time ( &T );timenow = localtime ( &T );flog=0;while(1)system("cls"); printf("nnnnn");printf("|員工信息查詢(xún)系統(tǒng)An)i1printf("|n");printf("n");printf("n");printf("n")
35、;printf("n");printf("n");printf("n");printf("n");printf("n");printf("n");printf("n");printf("n");printf("n");printf("n");printf("n");printf("1. 按照編號(hào)查詢(xún)2. 按照姓名查詢(xún)3. 按照生日查詢(xún)0. 退出管理系統(tǒng)n")
36、;prin tf(" |In");printf("|In");printf("1ni1printf("%s", asctime (timenow) );printf(" 請(qǐng)輸入您的選擇(數(shù)字0-3 ):n");scanf("%c",&i);gets(lj); if(lj0)i='a'switch(i)case '1':bianhao();break; case '2':xingming();break;case '3
37、9;:shengri();break; case '0':flog=1;break; default:printf(" 輸入有誤,請(qǐng)重新輸入 n");gets(lj);break;if(flog)break;void bianhao()int number;char lj100;struct emp *p1;p1=head;printf(" 請(qǐng)輸入要查詢(xún)員工的編號(hào) :n");scanf("%d",&number); while(number!=p1->num)&&(p1->next!
38、=NULL) p1=p1->next;if(number=p1->num)printf("員工信息查詢(xún)nprintf(" 要查詢(xún)的員工信息 :n");printf("編號(hào)tt姓名tt年齡tt性別tt出生年月tt電話(huà)tt學(xué)歷tt 職務(wù)tt住址:n");printf("%ldtt%stt%dtt%stt%stt%stt%stt%stt%sn",p1->n um,p1->name,p1->age,p1->sex,p1->birthday,p1->tel,p1->edu,p1-&
39、gt;pos, p1->add);printf(" 按回車(chē)鍵繼續(xù) n");gets(lj); getchar(); else if(p1->next=NULL) printf(" 要查詢(xún)的員工信息不存在,按回車(chē)鍵返回 :n"); gets(lj);getchar();void xingming()char ch10;struct emp *p;char lj100;p=head;printf(" 請(qǐng)輸入要查詢(xún)的員工的名字 :n"); scanf("%s",ch);if(p=NULL)printf(&qu
40、ot; 不存在員工記錄,按回車(chē)鍵返回 .n");gets(lj); getchar(); return ; while(strcmp(ch,p->name)&&p->next!=NULL) p=p->next; if(!strcmp(ch,p->name)prin tf("員工信息查詢(xún)n"printf("編號(hào)tt姓名tt年齡tt性別tt出生年月tt電話(huà)tt學(xué)歷tt 職務(wù)tt 住址:n"); d isplay(p);printf(”按回車(chē)鍵繼續(xù) n");gets(lj);getchar();els
41、e if(p->next=NULL)printf(" 不存在員工記錄 .n");gets(lj); getchar(); return; void shengri()char bir20,lj100; struct emp *p;p=head; printf(" 請(qǐng)輸入要查詢(xún)的員工的出生日期 :n"); scanf("%s",bir);if(p=NULL)printf(" 不存在員工記錄 .按回車(chē)鍵返回 n");gets(lj);getchar(); return ;while(strcmp(bir,p-&g
42、t;birthday)&&p->next!=NULL)p=p->next;if(!strcmp(bir,p->name)printf("員工信息查詢(xún)n");printf("編號(hào)tt姓名tt年齡tt性別tt出生年月tt電話(huà)tt學(xué)歷tt 職務(wù)tt 住址:n"); display(p);printf("按回車(chē)鍵繼續(xù) n");gets(lj);getchar(); else if(p->next=NULL)printf(" 不存在員工記錄 .按回車(chē)鍵返回 n");gets(lj);g
43、etchar(); return;void readDate()FILE * fp;struct emp *p1,*p2;fp=fopen(DATA, "r");if(!fp)printf(" 打開(kāi)文件失敗 !按回車(chē)鍵繼續(xù) n");getchar();else fscanf(fp,"%dn",&t);head=p1=p2=(struct emp *)malloc(LEN);fscanf(fp,"%ldtt%stt%dtt%stt%stt%stt%stt%stt%sn",&p1->num,p1-
44、>name,&p1->age,p1->sex,p1->birthday,p1->tel,p1->edu, p1->pos,p1->add);while(!feof(fp)p1=(struct emp *)malloc(LEN); fscanf(fp,"%ldtt%stt%dtt%stt%stt%stt%stt%stt%sn",&p1->num,p1->name,&p1->age,p1->sex,p1->birthday,p1->tel,p1->edu,p1 -&
45、gt;pos,p1->add);p2->next=p1; p2=p1;p2->next=NULL;fclose(fp);void writeDate()FILE* fp; struct emp *p1;fp=fopen(DATA, "w");if(!fp) printf(" 打開(kāi)文件失敗 !n");getchar(); else fprintf(fp,"%dn",t);for(p1=head;p1!=NULL;p1=p1->next) fprintf(fp,"%ldtt%stt%dtt%stt%stt
46、%stt%stt%stt%sn",p1 ->num,p1->name,p1->age,p1->sex,p1->birthday,p1->tel,p1->edu,p1-> pos,p1->add); fclose(fp);void freeAll()struct emp *p1,*p2; p1=p2=head;while(p1) p2=p1->next;free(p1);p1=p2; void shanchu()struct emp *p1,*p2; long int number;char lj100;if(head=NUL
47、L)printf(" 無(wú)員工紀(jì)錄 ! 按回車(chē)鍵返回 n"); gets(lj);getchar();return; printf(" 請(qǐng)輸入你要?jiǎng)h除的員工的編號(hào) :n"); scanf("%ld",&number); p1=head;while(number!=p1->num&&p1->next!=NULL)p2=p1;p1=p1->next;if(number=p1->num) if(p1=head)head=p1->next; else p2->next=p1->n
48、ext;free(p1);t-;writeDate();printf(" 刪除成功,按回車(chē)鍵繼續(xù) n"); else printf(" 沒(méi) 有 該 員 工 的 紀(jì) 錄 , 請(qǐng) 核 對(duì) . 按 回 車(chē) 鍵 返 回 n");gets(lj);getchar();void xiugai()struct emp *p1,*p2;long int number;char lj100; if(head=NULL) printf(" 無(wú)員工紀(jì)錄 ! 按回車(chē)鍵返回 n");gets(lj);getchar();return;printf("
49、 請(qǐng)輸入你要修改的員工的編號(hào) :n"); scanf("%ld",&number);gets(lj); p1=head; while(number!=p1->num&&p1->next!=NULL) p2=p1; p1=p1->next; if(number=p1->num) devise(p1);writeDate();printf(" 修改成功,按回車(chē)鍵繼續(xù) n"); elseprintf(" 沒(méi)有該員工的紀(jì)錄 ,請(qǐng)核對(duì) .按回車(chē)鍵返回 n"); gets(lj);getc
50、har();void devise(struct emp *p)char i,lj100;int flog;time_t T;struct tm * timenow;time ( &T );timenow = localtime ( &T ); flog=0;while(1)system("cls"); printf("nnnnn");printf("i員工信息修改一n±1printf("|n");printf("|n");printf("|n");print
51、f("|1. 修改員工姓名|n");printf("|n");printf("|n");printf("|n");printf("|2. 修改員工年齡|n");printf("|n");printf("|n");printf("|n");printf("|3. 修改員工性別|n");printf("|n");printf("|n");printf("|n")
52、;printf("|4. 修改員工生日|n");printf("|n");printf("|n");printf("|n");printf("|5. 修改員工電話(huà)|n");printf("|n");printf("|n");printf("|n");printf("|0. 退出管理系統(tǒng)|n");printf("|n");printf("|n");printf("|n");printf("1n")iiprintf("%s", asctime (timenow)
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 圖書(shū)講座系列策劃方案計(jì)劃
- 班級(jí)工作計(jì)劃順利推進(jìn)
- 2025年離合器主缸項(xiàng)目合作計(jì)劃書(shū)
- 2025年高密度聚乙烯土工膜合作協(xié)議書(shū)
- 綠色建筑項(xiàng)目2024年合作意向書(shū)
- 金融科技公司風(fēng)控系統(tǒng)設(shè)計(jì)與優(yōu)化措施研究報(bào)告
- 消防維修工程合同協(xié)議書(shū)
- 房地產(chǎn)營(yíng)銷(xiāo)合作項(xiàng)目協(xié)議書(shū)
- 工業(yè)機(jī)器人班級(jí)文化建設(shè)方案設(shè)計(jì)
- 季度市場(chǎng)營(yíng)銷(xiāo)工作計(jì)劃與執(zhí)行步驟
- 淋巴瘤的免疫靶向治療
- 《銷(xiāo)售人員的培訓(xùn)》課件
- 炎癥性腸病的自我管理
- 國(guó)防動(dòng)員課件教學(xué)課件
- 特殊作業(yè)安全管理監(jiān)護(hù)人專(zhuān)項(xiàng)培訓(xùn)課件
- 自行車(chē)被盜案匯報(bào)課件
- 律師事務(wù)所案件管理手冊(cè)
- 簡(jiǎn)單酒店裝修合同書(shū)范本(30篇)
- 《地理信息系統(tǒng)GIS》全套教學(xué)課件
- 技術(shù)序列學(xué)習(xí)地圖(2023年)
- 中國(guó)銀行(香港)有限公司招聘筆試真題2023
評(píng)論
0/150
提交評(píng)論