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

正文內(nèi)容

-用c語言設(shè)計(jì)宿舍管理查詢軟件-閱讀頁

2024-09-25 10:51本頁面
  

【正文】 ****\n\n)。 char namekey[8]。 person=(personnode *)malloc(sizeof(personnode))。 scanf(%s,namekey)。t open thefile)。 } while(!feof(fp)) 《 用 C 語言 設(shè)計(jì)宿舍管理查詢軟件》 第 18 頁 共 2 4 頁 { fscanf(fp,%s %s %s\n,personname,personxh,personfh)。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 } } if(!k) printf(\n\n sorry,there is not the current of thiss people \n)。 } void search2() //按學(xué)號(hào)搜索函數(shù) { int k=0。 personnode *person。 printf(\n please enter the roomnumber you want to serch: )。 if((fp=fopen(filename,rb))==NULL) { printf(\n can39。 exit(0)。 《 用 C 語言 設(shè)計(jì)宿舍管理查詢軟件》 第 19 頁 共 2 4 頁 if(!strcmp(xhkey,personxh)) ////比較是否相同 相同則輸出結(jié)果 否則輸出未找到記錄 { printf(\n\n have got it,the current is: )。 k=1。 fclose(fp)。 char fhkey[30]。 person=(personnode *)malloc(sizeof(personnode))。 scanf(%s,fhkey)。t open thefile)。 } while(!feof(fp)) { fscanf(fp,%s %s %s\n,personname,personxh,personfh)。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 } } if(!k) printf(\n\n sorry,there is not the current of thiss people\n)。 } void append() //插入函數(shù) 用于像已有文件插入一條新的學(xué)生信息記錄 { personnode *person。 if((fp=fopen(filename,a))==NULL) { printf(\n can39。 exit(0)。 scanf(%s %s %s,personname,personxh,personfh)。 fclose(fp)。 long offset。 《 用 C 語言 設(shè)計(jì)宿舍管理查詢軟件》 第 21 頁 共 2 4 頁 personnode *person。 printf(\n please enter the studentname you want to updata :)。 if((fp=fopen(filename,r+))==NULL) { printf(\n can39。 exit(0)。 fscanf(fp,%s %s %s\n,personname,personxh,personfh)。 break。 printf(%10s%20s%50s\n,personname,personxh,personfh)。 scanf(%s %s %s,personname,personxh,personfh)。 fprintf(fp,%10s%20s%50s\n,personname,personxh,personfh)。 fclose(fp)。 char m。 char namekey[8]。 person=(personnode *)malloc(sizeof(personnode))。 scanf(%s,namekey)。t open the file )。 } while(!feof(fp)) //此循環(huán)遍歷整個(gè)文件 查找需要?jiǎng)h除的記錄 { offset=ftell(fp)。 if(!strcmp(namekey,personname)) { k=1。 } } if(k) { printf(\n hava got it,the current is: )。 《 用 C 語言 設(shè)計(jì)宿舍管理查詢軟件》 第 23 頁 共 2 4 頁 printf(\n are you sure to delete it?y/n?)。m)。y39。 //刪除記錄 fprintf(fp,%10s%20s%50s\n,)。 } else printf(\n sorry,there is not the current of this people \n)。 } void main() //主函數(shù) { int m,flag=1。 printf(\n)。 printf(\t\t1read the oldfile\n)。 printf(\t\t3 serch as studentnumber\n)。 printf(\t\t5updata\n)。 printf(\t\t7insert\n)。 printf(\t\t9exit\n)。 printf(\t please choice(09)\n)。m)。 break。 break。 break。 break。 break。 break。 break。 break。 break。 } } }
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1