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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)-宿舍管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)-資料下載頁(yè)

2024-09-08 02:34本頁(yè)面

【導(dǎo)讀】理論和算法并綜合運(yùn)用于解決實(shí)際問(wèn)題中,它是理論與實(shí)踐相結(jié)合的重要過(guò)程。解決問(wèn)題,同時(shí)訓(xùn)練學(xué)生進(jìn)行復(fù)雜程序設(shè)計(jì)的技能和培養(yǎng)良好的程序設(shè)計(jì)習(xí)慣。個(gè)學(xué)生實(shí)住人數(shù)會(huì)自動(dòng)加1或減1,實(shí)現(xiàn)動(dòng)態(tài)增減。宿舍種類和學(xué)生的不斷增加,對(duì)于管理造成了困難。速度慢,管理困難,容易丟失數(shù)據(jù),已經(jīng)不適合現(xiàn)在的要求。困難,和查詢的不便。二十一世紀(jì)的今天,已經(jīng)是計(jì)算機(jī)的時(shí)代。計(jì)算機(jī)已經(jīng)進(jìn)入了現(xiàn)代社會(huì)的各。大的程序員來(lái)說(shuō)已經(jīng)成為一件刻不容緩的事。此次課程設(shè)計(jì)就是為了解決這種問(wèn)題而設(shè)計(jì)的。據(jù)了解,我校宿管科是管理學(xué)生住宿、出勤、衛(wèi)生、紀(jì)律等方面的后勤部門,舍服務(wù)公司處理,然后再送交各院系。如有違紀(jì)人員,則先交值班室處理然后交。各院系,使情況輕重決定是否交給自律委員會(huì)處理。持保修表到所在校區(qū)后勤集團(tuán)相關(guān)服務(wù)部門辦理報(bào)修事宜。各樓值班室的登記數(shù)據(jù)自己保存,以方便學(xué)生家長(zhǎng)查找學(xué)生。

  

【正文】 ose(fp)。 } void modify() //更新函數(shù) 用于修改指定學(xué)生姓名的記錄 { int k=0。 long offset。 char namekey[8]。 《 宿舍管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn) 》 第 24 頁(yè) 共 27 頁(yè) personnode *person。 person=(personnode *)malloc(sizeof(personnode))。 printf(\n please enter the studentname you want to updata :)。 scanf(%s,namekey)。 if((fp=fopen(filename,r+))==NULL) { printf(\n can39。t open thefile)。 exit(0)。 } while(!feof(fp)) { offset=ftell(fp)。 fscanf(fp,%s %s %s\n,personname,personxh,personfh)。 if(!strcmp(namekey,personname)) //比較是否相同 如 { k=1。 break。 } } if(k) //相同 輸出記錄并進(jìn)行修改 { printf(\n hava got it,the current is: )。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 printf(\n please enter the new studentname,studentnumber and roomnumber : )。 scanf(%s %s %s,personname,personxh,personfh)。 fseek(fp,offset,SEEK_SET)。 fprintf(fp,%10s%20s%50s\n,personname,personxh,personfh)。 } 《 宿舍管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn) 》 第 25 頁(yè) 共 27 頁(yè) else printf(\n sorry, there is not the current of this people \n)。 fclose(fp)。 } void deleted() //刪除函數(shù) 用于刪除指定學(xué)生姓名的記錄 { int k=0。 char m。 long offset。 char namekey[8]。 personnode *person。 person=(personnode *)malloc(sizeof(personnode))。 printf(\n please enter the name you want to delete : )。 scanf(%s,namekey)。 if((fp=fopen(filename,r+))==NULL) { printf(\n can39。t open the file )。 exit(0)。 } while(!feof(fp)) //此循環(huán)遍歷整個(gè)文件 查找需要?jiǎng)h除的記錄 { offset=ftell(fp)。 fscanf(fp,%s%s%s\n,personname,personxh,personfh)。 if(!strcmp(namekey,personname)) { k=1。 break。 } } if(k) 《 宿舍管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn) 》 第 26 頁(yè) 共 27 頁(yè) { printf(\n hava got it,the current is: )。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 printf(\n are you sure to delete it?y/n?)。 scanf(%s,amp。m)。 if(m==39。y39。) //刪除確認(rèn)按鈕 { fseek(fp,offset,SEEK_SET)。 //刪除記錄 fprintf(fp,%10s%20s%50s\n,)。 } else rewind(fp)。 } else printf(\n sorry,there is not the current of this people \n)。 fclose(fp)。 } void main() //主函數(shù) { int m,flag=1。 // m 用于控制菜單的選擇項(xiàng) flag 用于控制菜單彈出 while(flag) { printf(%33s\n,thefile)。 printf(\n)。 printf(\t\t0creat a new datafile\n)。 printf(\t\t1read the oldfile\n)。 printf(\t\t2 serch as name\n)。 printf(\t\t3 serch as studentnumber\n)。 printf(\t\t4 serch as roomnumber\n)。 printf(\t\t5updata\n)。 printf(\t\t6delete\n)。 《 宿舍管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn) 》 第 27 頁(yè) 共 27 頁(yè) printf(\t\t7insert\n)。 printf(\t\t8printf\n)。 printf(\t\t9exit\n)。 printf(\n)。 printf(\t please choice(09)\n)。 scanf(%d,amp。m)。 switch(m) { case 0:creat()。 break。 case 1:readfile()。 break。 case 2:search1()。 break。 case 3:search2()。 break。 case 4:search3()。 break。 case 5:modify()。 break。 case 6: deleted()。 break。 case 7:append()。 break。 case 8:output()。 break。 case 9:exit(0)。 } } }
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1