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

正文內(nèi)容

員工管理系統(tǒng)課程設(shè)計報告(編輯修改稿)

2025-02-11 22:56 本頁面
 

【文章內(nèi)容簡介】 。 strcpy(p0name,)。 strcpy(p0job,)。 strcpy(p0birthday,)。 p0pay=。 strcpy(p0sex,)。 if(head==NULL) { head=add(temp)。 } else { while((strcmp(p0id,p1id)=0) amp。amp。 (p1next!=NULL)) { p2=p1。 p1=p1next。 } p2next=p0。 p0next=p1。 } n=n+1。 savedata=0。 return(head)。 } ///////////////////////////////////////////////////////// struct employer *add(struct employer temp) { struct employer *p1,*p2。 if(head==NULL) { p1=(struct employer *)malloc(sizeof(struct employer))。 =NULL。 strcpy(p1id,)。 strcpy(p1name,)。 strcpy(p1job,)。 strcpy(p1birthday,)。 19 p1pay=。 strcpy(p1sex,)。 p1next=。 head=p1。 n++。 } else { //g1: p1=head。 while(p1next!=NULL) { p1=p1next。 } p2=(struct employer *)malloc(sizeof(struct employer))。 =NULL。 strcpy(p2id,)。 strcpy(p2name,)。 strcpy(p2job,)。 strcpy(p2birthday,)。 p2pay=。 strcpy(p2sex,)。 p2next=。 p1next=p2。 n++。 savedata=0。 // printf(是否還回上一級 ,y/n?)。 //scanf(%s,judge)。 //if(judge=39。y39。) goto g1。 } return(head)。 } ////////////////////////////////////////////////////// void findbyid(struct employer *head,char id[8]) { struct employer *p1。 printf(\n*****************查詢結(jié)果 *********************\n)。 if(head==NULL) { printf(對不起 ,您的數(shù)據(jù)庫里沒有任何記錄 .\n)。 system(pause)。 return。 20 } p1=head。 printf(ID\t姓名 \t職位 \t性別 \t月薪 \t出生日期 \n)。 while(p1!=NULL) { if(strcmp(id,p1id)==0) printf(%s\t%s\t%s\t%s\t%f\t%s\n,p1id,p1name,p1job,p1sex,p1pay,p1birthday)。 p1=p1next。 } printf(\n**********************************************\n)。 system(pause)。 } /////////////////////////////////////////////////////// void findbyname(struct employer *head,char name[10]) { struct employer *p1。 printf(\n*****************查詢結(jié)果 *********************\n)。 if(head==NULL) { printf(對不起 ,您的數(shù)據(jù)庫里沒有任何記錄 .\n)。 system(pause)。 return。 } p1=head。 printf(ID\t姓名 \t職位 \t性別 \t月薪 \t出生日期 \n)。 while(p1!=NULL) { if(strcmp(name,p1name)==0) printf(%s\t%s\t%s\t%s\t%f\t%s\n,p1id,p1name,p1job,p1sex,p1pay,p1birthday)。 p1=p1next。 } printf(\n**********************************************\n)。 system(pause)。 } //////////////////////////////////////////////////////// void modify(struct employer *head,char id[8],struct employer temp) { struct employer *p1。 if(head==NULL) 21 { printf(對不起 ,您的數(shù)據(jù)庫里沒有任何記錄 .\n)。 system(pause)。 return。 } p1=head。 while(p1!=NULL) { if(strcmp(id,p1id)==0) { =p1next。 strcpy(p1id,)。 strcpy(p1name,)。 strcpy(p1job,)。 strcpy(p1birthday,)。 p1pay=。 strcpy(p1sex,)。 p1next=。 } p1=p1next。 } savedata=0。 } /////////////////////////////////////////////////////// void sortbyid(struct employer *head) { employer *small=NULL。 employer *temp =NULL。 employer *newfirst=NULL。 employer *newpre=NULL。 while(headnext!=NULL) { small=headnext。 temp=headnext。 while(temp!=NULL) { if(strcmp(tempid,smallid)==1) { small=temp。 } temp=tempnext。 } 22 temp=head。 while(tempnext!=small) { temp=tempnext。 } tempnext=smallnext。 if(newfirst==NULL) { newfirst=small。 newfirstnext=NULL。 newpre=newfirst。 } else { newprenext=small。 smallnext=NULL。 newpre=small。 } } headnext=newfirst。 temp=NULL。 newfirst=NULL。 newpre=NULL。 return。 } ///////////////////////////////////// void sortbyname(struct employer *head) { employer *small=NULL。 employer *temp =NULL。 employer *newfirst=NULL。 employer *newpre=NULL。 while(headnext!=NULL) { small=headnext。 temp=headnext。 while(temp!=NULL) { if(strcmp(tempname,smallname)==1) { small=temp。 } temp=tempnext。 23 } temp=head。 while(tempnext!=small) { temp=tempnext。 } tempnext=smallnext。 if(newfirst==NULL) { newfirst=small。 newfirstnext=NULL。 newpre=newfirst。 } else { newprenext=small。 smallnext=NULL。 newpre=small。 } } headnext=newfirst。 temp=NULL。 newfirst=NULL。 newpre=NULL。 return。 } //////////////////////////////////////////////////////// void save(struct employer *head) { FILE *fp。 struct employer *p1。 if(head==NULL) { printf(\n您沒有需要保存的記錄 ,無須保存 .\n)。 system(pause)。 return。 } fp=fopen(dbpath,w+)。 if(fp==NULL) { printf(\n打開 %s失敗 .\n,dbpath)。 system(pause)。 return。 24 } p1=head。 while(p1!=NULL) { fwrite(p1,sizeof(struct employer),1,fp)。 p1=p1next。 } fclose(fp)。 printf(\n保存成功 !\n)。 system(pause)。 } //////////////////////////////////////////////// void format() { system(cls)。 printf(\n\n)。 printf(***********************************************\n)。 } /////////////////////////////////////////////////// void choose(int cmd) { switch(cmd) { case 1: format()。 madd()。 break。 case 2: format()。 printall(head)。 break。 case 3: format()。 mfind()。 break。 case 4: format()。 mmodify()。 break。 25 case 5: format()。 msort()。 break。 case 6: format()。
點擊復(fù)制文檔內(nèi)容
規(guī)章制度相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1