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

正文內(nèi)容

c語言課程設(shè)計論文(建筑工地信息管理系統(tǒng))(編輯修改稿)

2025-06-30 20:05 本頁面
 

【文章內(nèi)容簡介】 fp)。 menu()。 } void delete() { int t,m。 do { puts(\t\t***************MENU*************\n\n)。 puts(\t\t\ new data)。 puts(\t\t\ new data)。 puts(\t\t\ new data)。 /*********刪除菜單 ****************/ puts(\t\t\ new data)。 puts(\t\t\)。 puts(\n\n\t\t ********************************\n)。 printf(Choose the number(15):[ ]\b\b)。 scanf(%d,amp。m)。 if(m1||m5) { t=1。 getchar()。 } else t=0。 } while(t==1)。 switch(m) { case 1:sal_delete()。break。 case 2:build_delete()。break。 case 3:pj_delete()。break。 case 4:SET_delete ()。break。 case 5:menu()。 } } 44 查找模塊 【需求分析】 該模塊的功能事根據(jù)輸入的信息號碼查找對應(yīng)的記錄。選擇 合適的 查找方式,輸入相應(yīng)的數(shù)據(jù) 從而 找出對應(yīng)的數(shù)據(jù)。 其 流程圖如下 圖 5 所示 : 開始返回主菜單輸入查找的方式: 1 )項目號; 2 )工地號 ; 3 ) 配件號 ; 4 ) 銷售商號文件是否存在?YY項目是否存在?輸入要刪除的項顯示查找項目NN 圖 5 查找模塊流程圖 【程序】 /********************************查找模塊 ***********************************/ void search() { int i,w=101,j,x,h=0。 FILE *fp。 printf(1By 銷售商號碼 \n)。 printf(2By 工地號 \n)。 printf(3By 配件號 \n)。 printf(4By 銷售商號 \n)。 printf(5 返回 \n\n)。 loop9:printf(請選擇項 :\n)。 scanf(%d,amp。x)。 if(x==5) menu()。 else if(x1||x5) {printf(Error!\n)。goto loop9。} else if(x==3) { if((fp=fopen(,rb))==NULL) { printf(Can not open the file!\n)。 menu()。 } printf(Please input the 配件號 :)。 scanf(%d,amp。i)。 for(j=0。j100。j++) {if(fread(amp。pj[j],sizeof(struct peijian),1,fp)!=1) break。} h=j+1。 for(j=0。jh。j++) if(i==pj[j].num) {w=j。break。} if(w==101) printf(Cannot find the data!\n)。 else { printf(配件號 :%d\n,pj[w].num)。 /*輸出結(jié)構(gòu)體內(nèi)的配件號( num) */ printf(配件名 :%s\n,pj[w].name)。 printf(配件顏色 :%s\n,pj[w].color)。 printf(配件重量 :%d\n,pj[w].weight)。 printf(配件產(chǎn)地 :%s\n,pj[w].area)。 printf(\n)。 } fclose(fp)。 menu()。 } else if(x==4) { if((fp=fopen(,rb))==NULL) { printf(Can not open the file!\n)。 menu()。 } printf(請輸入銷售商號 :)。 scanf(%d,amp。i)。 for(j=0。j100。j++) {if(fread(amp。sel[j],sizeof(struct seller),1,fp)!=1) break。} h=j+1。 for(j=0。jh。j++) if(i==sel[j].num) {w=j。break。} if(w==101) printf(Cannot find the data!\n)。 else { printf(銷售商號 :%d\n,sel[w].num)。 printf(銷售商名 :%s\n,sel[w].name)。 printf(銷售商狀態(tài) :%s\n,sel[j].state)。 printf(所在城市 :%s\n,sel[w].city)。 printf(\n)。 } fclose(fp)。 menu()。 } else if(x==2) { if((fp=fopen(,rb))==NULL) { printf(Can not open the file!\n)。 menu()。 } printf(請輸入建筑工地號 :)。 scanf(%d,amp。i)。 for(j=0。j100。j++) {if(fread(amp。build[j],sizeof(struct building),1,fp)!=1) break。} h=j+1。 for(j=0。jh。j++) if(i==build[j].num) {w=j。break。} if(w==101) printf(Cannot find the data!\n)。 else { printf(建筑項目號 :%d\n,build[j].num1)。 printf(建筑工地號 :%d\n,build[j].num)。 printf(建筑工地名 :%s\n,build[j].name)。 printf(工地城市 :%s\n,build[j].city)。 printf(\n)。 } fclose(fp)。 menu()。 } else if(x==1) { if((fp=fopen(,rb))==NULL) { printf(Can not open the file!\n)。 menu()。 } printf(請輸入銷售商號碼 :)。 scanf(%d,amp。i)。 for(j=0。j100。j++) {if(fread(amp。sal[j],sizeof(struct sale),1,fp)!=1) break。} h=j+1。 for(j=0。jh。j++) if(i==sal[j].num1) {w=j。break。} if(w==101) printf(Cannot find the data!\n)。 else { printf(銷售商號碼 :%d\n,sal[j].num1)。 printf(配件號碼 :%d\n,sal[j].num2)。 printf(工地號碼 :%d\n,sal[j].num3)。 printf(數(shù)量 :%d\n,sal[j].num4)。 printf(\n)。 } fclose(fp)。 menu()。 } } 45 配對模塊 【需求分析】 該模塊的功能是查詢與供應(yīng)商所在城市相同的零件 — 供應(yīng)商,項目 — 供應(yīng)商記錄對。輸入配對方式(按配件號,按項目號),找出所在城市相同的數(shù)據(jù),輸出數(shù)據(jù)。 其流程圖如下圖 6 所示: 開始輸入要配對的方式 : 1 ) 配件號 ;2 )銷售商號碼; 3 )返回3N結(jié)束并返回主菜單文件能否打開顯示找到的記錄輸入要配對的項 圖 6 配對模塊流程圖 【程序】 /********************************配對模塊 *******************************/ void search2() { int x,j,i,a=0,b=0。 int w。FILE *fp1,*fp2。 printf( 配件號 \n)。 printf( 項目 \n)。 printf( \n\n)。 loop:printf(請選擇項 :\n)。 scanf(%d,amp。x)。 if(x==3) menu()。 else if(x1||x3) {printf(Error!)。goto loop。} else if(x==1) { if((fp1=fopen(,rb))==NULL||(fp2=fopen(,rb))==NULL) {printf(Cannot open the file!\n\n)。 menu()。 } for(j=0。j100。j++) {if(fread(amp。pj[j],sizeof(struct peijian),1,fp1)!=1) break。} a=j+1。 for(j=0。j100。j++) {if(fread(amp。sel[j],sizeof(struct seller),1,fp2)!=1) break。} b=j+1。 printf(已有配件號 :\n)。 for(j=0。ja1。j++) printf(%d, ,pj[j].num)。 printf(\nPlease input the 配件號 :)。 scanf(%d,amp。w)。 for(j=0。ja。j++) {if(w==pj[j].num) break。} for(i=0。ib。i++) if(strcmp(pj[j].area,sel[i].city)==0amp。amp。strcmp(sel[i].city,sel[99].city)!=0) printf(配件號 :%d 銷售商號 :%d 所在城 市 :%s\n,pj[j].num,sel[i].num,sel[i].city)。 fclose(fp1)。fclose(fp2)。menu()。 } else if(x==2) { if((fp1=fopen(,rb))==NULL||(fp2=fopen
點擊復制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1