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

正文內容

員工管理系統(tǒng)課程設計報告(存儲版)

2025-02-14 22:56上一頁面

下一頁面
  

【正文】 ///////////////////////// void findbyid(struct employer *head,char id[8]) { struct employer *p1。 p1=p1next。 } p1=head。 system(pause)。 p1pay=。 employer *newpre=NULL。 if(newfirst==NULL) { newfirst=small。 newfirst=NULL。 temp=headnext。 newpre=newfirst。 return。 system(pause)。 } //////////////////////////////////////////////// void format() { system(cls)。 break。 msort()。 case 8: format()。 break。 about()。 26 } } } /////////////////////////////// void quit() { char c。y39。Y39。 printf(請輸入員工姓名 :)。)。 }while(c!=39。char id[8]。 if(c==1) { printf(請輸入員工 ID:)。 // system(pause)。 printf(請輸入員工 ID:)。 printf(請輸入員工月薪 :)。 printf( .\n)。 else { printf(不可識別命令 .\n)。 printf( .\n)。 scanf(%s,name)。 printf(請輸入插 入數據 :\n)。 scanf(%s,)。 printf(請輸入數據庫路徑,例如 :C:\\:)。 return head。 fclose(fp)。 struct employer *p1。 while(p1!=NULL) { paysum+=p1pay。 system(pause)。 scanf(%s,)。 } else if(strcmp(cmd,find2)==0) { scanf(%s,cmd)。 scanf(%s,)。 33 scanf(%s,)。 else if(strcmp(cmd,sort2)==0) sortbyname(head)。q39。 } ///////////////////////////////////// void mexecmd() 34{ char c=39。amp。 if(fp==NULL) { printf(對不起 , !\n)。 scanf(%s,pwd)。 goto line1。 printf(modify 用于修改記錄 : \n例如 :modify 要修改的員工 ID 員工ID 姓名 工作 性別 月薪 出生日期 \n)。 printf(cls 用于清屏 : 例如 :cls\n)。 else if(strcmp(temp,find2)==0) printf(find2 用于按姓名查找記錄 : 例如 :find2\n)。 else if(strcmp(temp,load)==0) printf(load 用于載入數據庫 : 例如 :load c:\\n)。 else printf(對不起本系統(tǒng)不支持該命令 .)。 37 strcpy(p1id,p2id)。 strcpy(p2job,)。 char pwd1[16]。 if(strcmp(,pwd1)==0) { fp=fopen(,w+)。 } 。 printf(請再次輸入密碼: )。 }。 strcpy(p2id,)。 =p1pay。 else if(strcmp(temp,exitshell)==0) printf(exitshell 用于退出命令行模式 : 例如 :exitshell\n)。 else if(strcmp(temp,sort2)==0) printf(sort2 用于按姓名排序所有記錄 : 例如 :sort2\n)。 else if(strcmp(temp,add)==0) printf(add 用于添加一條記錄 : 例如 :add 員工 ID 姓名 工作 性別 月薪 出生日期 \n)。 printf(save 用于保存所有記錄 : 例如 :save\n)。 printf(del1 用于按 ID刪除記錄 : 例如 :del1 id\n)。 } else { printf(重復密碼錯誤 .)。 scanf(%s,)。 FILE *fp。q39。 } return 39。 else if(strcmp(cmd,quit)==0) quit()。 head=insert(head,temp)。 modify(head,cmd,temp)。 } else if(strcmp(cmd,modify)==0) { scanf(%s,cmd)。 } else if(strcmp(cmd,find1)==0) { scanf(%s,cmd)。 32 else if(strcmp(cmd,add)==0) { scanf(%s,)。 p1=p1next。 printf(\n\n\n)。 return head。amp。 if(fp==NULL) { printf(\n 11 打開 %s失敗 .\n,filepath)。 insert(head,temp)。 scanf(%s,)。 return。 head=delbyid(head,id)。 printf( ID.\n)。 } else if(c==2) { sortbyname(head)。 } ///////////////////////////////////// void msort() { int c。 printf(請輸入員工性別 :)。 scanf(%s,id)。 } else if(c==3) return。 scanf(%d,amp。)。 scanf(%c,amp。 printf(請輸入員工月薪 :)。 do { printf(請輸入員工 ID:)。c)。Y39。 printf(不可識別的命令 .\n)。 break。 case 10: format()。 mdel()。 break。 case 2: format()。 printf(\n保存成功 !\n)。 } fp=fopen(dbpath,w+)。 newfirst=NULL。 if(newfirst==NULL) { newfirst=small。 employer *newpre=NULL。 } } headnext=newfirst。 while(tempnext!=small) { temp=tempnext。 employer *temp =NULL。 strcpy(p1job,)。 } //////////////////////////////////////////////////////// void modify(struct employer *head,char id[8],struct employer temp) { struct employer *p1。 system(pause)。 printf(ID\t姓名 \t職位 \t性別 \t月薪 \t出生日期 \n)。) goto g1。 p2next=。 } p2=(struct employer *)malloc(sizeof(struct employer))。 strcpy(p1birthday,)。 savedata=0。 if(head==NULL) { head=add(temp)。 p1=head。 printf(已經刪除了 id 為 %s的記錄 .\n,p1id)。 goto end。 savedata=0。 while(strcmp(id,p1id)!=0 amp。 } printf(*****************************************************\n)。 } struct employer *p1。 printf(\n\n\n)。 } ////////////////////////////////////////// void process() { char temp[]={}。 printf(\t\t* 13. 關 于 *\t\t\n)。 printf(\t\t* 5. 排序 員 工 記 錄 *\t\t\n)。 。 printf(請輸入您的密碼 :)。 exit(0)。 char username[10]。 printf(\t\t\t* 作者:雷世明 計科 1號 *\t\t\n)。 *\t\t\n)。 } /////////////////////////////// void about() { system(cls)。 char dbpath[]={}。 struct employer *load(char filepath[30])。 void quit()。 struct employer *add(struct employer temp)。 void login()。 char birthday[10]。從中知道 程序設計不僅是模仿,還得創(chuàng)新。 (12)修改用戶信息:進入界面后輸入舊密碼,在輸入新用戶名和新密碼及重復密碼即可修改用戶名和密碼。 (4)查看功能:輸入 2則可查看所有記錄。 (11) sortbyname()函數:按姓名排序功能模塊,與上相似 。 (3) printall()函數:輸出記錄模塊,首先判斷鏈表是否為空,否則采用 while循環(huán)輸出直到下條記錄為空。 4. 設計內容 隨著目前公司規(guī)模的漸漸擴大,人事管理將成為一件不得不重視的問題。 (6)員工信息包括:編號、姓名、部門、年齡、性別、工資等。另一方面,本系統(tǒng)中所涉及到對鏈表的操作是我們學習程序設計這門課的難點兼重點,通過設計本系統(tǒng),不僅鞏固了我們的 C語言基礎,以及程 序設計能力,還鍛煉了我們對程序設計的流程及大體上的把握。本系統(tǒng)正是其中的一項,針對人事信息管理,方便公司對員工的信息進行處理,極大減少了人事管理的工作量。 (5)系統(tǒng)其它功能實現。 ( 5)進入代碼開發(fā)階段,編寫程序,進行調試直到成功。 (2) add()函數:創(chuàng)建或添加記錄,采用鏈表方式,判斷是否空鏈表,是則創(chuàng)建,否則往鏈表尾采用動態(tài)聲請空間添加記錄。 (10) sortbyid()函數:按 ID排序功能模塊,首先判斷鏈表是否為空,否則采用冒泡排序,即采用兩個 for循環(huán),在第二個 for 循環(huán)中判斷大小,決定是否交換。 9 (3)添加功能:進入添加界面后輸入 相應數據進行添加,要退出輸入 q或 Q。 (11)命令行模式:進入命令行后在命令提示符后輸入相應命令即可
點擊復制文檔內容
規(guī)章制度相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1