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

正文內(nèi)容

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

2025-06-15 20:05 上一頁面

下一頁面
 

【正文】 擴展。通過這次實習,我發(fā)現(xiàn)自己在這方面提高了許多,尤其對計算機的理解更加深入。 struct sale /*定義銷售商 配件 建筑工地 */ { int num1。 /*數(shù)量 */ }sal[100]。 /*工地名 */ char city[20]。 /*配件名 */ char color[20]。 struct seller /*定義銷售商結(jié)構(gòu)體 */ {int num 。 /*城市 */ }sel[100]。 FILE *fp。ji。 scanf(%d,amp。sal[i].num2)。 printf(輸入數(shù)量 r:\n)。sal[i++],sizeof(struct sale),1,fp)!=1) printf(File write error\n)。 if(strcmp(c,n)==0) break。 menu()。 if((fp=fopen(,wb))==NULL) { printf(Can not open the file!\n)。j++) fwrite(amp。build[i].num1)。 printf(輸入工地名 :\n)。 if(fwrite(amp。 scanf(%s,c)。} } } fclose(fp)。 FILE *fp。ji。 scanf(%d,amp。 printf(輸入配件顏色 :\n)。pj[i].weight)。pj[i++],sizeof(struct peijian),1,fp)!=1) printf(File write error\n)。 if(strcmp(c,n)==0)break。 menu()。 if((fp=fopen(,wb))==NULL) { printf(Can not open the file!\n)。j++) fwrite(amp。sel[i].num)。 scanf(%s,sel[i].state)。sel[i++],sizeof(struct seller),1,fp)!=1) printf(File write error\n)。 if(strcmp(c,n)==0)break。 menu()。 puts(\t\t\t\ new data)。 puts(\n\n\t\t ********************************\n)。 if(m1||m5) { t=1。 switch(m) { case 1:sal_enter()。 case 3:pj_enter()。 case 5:menu()。 FILE *fp。 scanf(%d,amp。j100。 for(j=0。} } fclose(fp)。 for(j=0。} } printf(\n 銷售商號碼,配件號,工地號,數(shù)量 \n)。 menu()。 if((fp=fopen(,rb))==NULL) { printf(Can not open the file!\n)。x)。j++) { if(fread(amp。jv。 if(w==101) {printf(Cannot find the data!\n\n)。jv。 printf( %d, \t%d, %s, %s\n,build[w].num1,build[w].num, build[w].name,build[w].city)。 } void pj_delete() { int j,v=0,x。 menu()。 if(x==0) menu()。pj[j],sizeof(struct peijian),1,fp)!=1) break。j++) { if(x==pj[j].num) {w=j。goto loop。j++) {if(j!=w) fwrite(amp。 printf(刪除成功 !\n\n)。int x。 menu()。 if(x==0) menu()。sel[j],sizeof(struct seller),1,fp)!=1) break。j++) { if(x==sel[j].num) {w=j。goto loop。} }fclose(fp)。 for(j=0。j100。 scanf(%d,amp。 FILE *fp。 menu()。} } printf(\n 配件號 ,配件名 ,顏色 ,重量 ,產(chǎn)地 :\n)。 for(j=0。} }fclose(fp)。 for(j=0。j100。 scanf(%d,amp。 FILE *fp。 fclose(fp)。build[j],sizeof(struct building),1,fp)。} else { fp=fopen(,wb)。break。 } v=j+1。 for(j=0。 } loop:printf(請輸入要刪除的工地號 (輸入 0 返回 menu):)。 int w=101。 printf(刪除成功 !\n\n)。j++) {if(j!=w) fwrite(amp。goto loop。j++) { if(x==sal[j].num1) {w=j。sal[j],sizeof(struct sale),1,fp)!=1) break。 if(x==0) menu()。 menu()。 int x。 case 4:SET_enter()。 case 2:build_enter()。 } else t=0。 scanf(%d,amp。 puts(\t\t\t\ new data)。 do { puts(\t\t***************MENU*************\n\n)。goto loop。 loop:printf(Is there any more?( Yes[y]/No[n]) \n)。 scanf(%s,sel[i].city)。 scanf(%s,sel[i].name)。 while(1) { printf(輸入銷售商號 :\n)。 } for(j=0。 char c[2]。goto loop。 loop:printf(Is there any more?( Yes[y]/No[n]) \n)。 scanf(%s,pj[i].area)。 printf(輸入配件重量 :\n)。 printf(輸入配件名 :\n)。pj[j],sizeof(struct peijian),1,fp)。 exit(0)。 } void pj_enter() { int j。 else { if(strcmp(c,y)!=0) {printf(error!\n)。 else printf(Successful!\n)。 printf(輸入工地城市 :\n)。 scanf(%d,amp。 while(1) { printf(輸入項目號碼 :\n)。 } for(j=0。 char c[2]。goto loop。 loop:printf(是否繼續(xù) ?( 是 [y]/否 [n]) \n)。sal[i].num4)。 scanf(%d,amp。 printf(輸入配件號碼 :\n)。sal[j],sizeof(struct sale),1,fp)。 exit(0)。 /*****************************數(shù)據(jù)輸入模塊 ************************************/ void sal_enter() { int j。 /*銷售商名字 */ char state[20]。 /*重量 */ char area[20]。 struct peijian /*定義配件結(jié)構(gòu)體 */ {int num。 /*項目號 */ int num。 /*配件號 */ int num3。 【 1】 張冬梅、劉遠興、陳晶、王媛妮, C語言課程設(shè)計與學習指導,中國鐵道局出版社,20xx 【 2】 唐浩強, C 語言設(shè)計(第二版),北京:清華大學出版社, 【 3】 賈宗璞、許合利, C 語言程序設(shè)計,江蘇:中國礦業(yè)大學出版社, 【 4】 【 5】 46 源程序 include include include include int i=0。 其實,實習最后,發(fā)現(xiàn)系統(tǒng)的設(shè)計并不是想象的那么可怕,只要理解數(shù)據(jù)在計算機內(nèi)部的存儲和工作方式,編寫過程簡單多了。 此次課程設(shè)計學習的時間雖然比較短,但是我在計算機方面的認識卻有了更為廣闊的了解。于是,又從頭開始一句句地看源程序,最終發(fā)現(xiàn)原來是因為我將 字符型的 數(shù)據(jù)信息 以整型的形式輸出了。由于我完全是的本子上仿照例題進行編寫的,當我把自己編好的程序輸進 C++進行運行時才發(fā)現(xiàn),我的程序存在大大小小很多的錯誤,還記得第一次 調(diào)試顯示的錯誤是 241 個 errors。所以,在實習的前兩天,利用課余時間我針對課程設(shè)計題目對 C 語言的知識點進行了選擇性的回顧,將基本的 C 語言用法重新掌握起來。 圖 11 刪除模塊 再用查找模塊去尋找被刪的信息,結(jié)果如圖 12 所示,說明該信息確實被刪除。 } } 5— 1 主菜單函數(shù) 效果如圖 7 所示。strcmp(sel[i].city,sel[99].city)!=0) printf( 項 目 號 :%d 銷 售 商 號 :%d 所 在 城市 :%s\n,build[j].num1,sel[i].num,sel[i].city)。} for(i=0。w)。ja1。sel[j],sizeof(struct seller),1,fp2)!=1) break。} a=j+1。 } for(j=0。fclose(fp2)。i++) if(strcmp(pj[j].area,sel[i].city)==0amp。ja。 printf(\nPlease input the 配件號 :)。 printf(已有配件號 :\n)。j100。j++) {if(fread(amp。} else if(x==1) { if((fp1=fopen(,rb))==NULL||(fp2=fopen(,rb))==NULL) {printf(Cannot open the file!\n\n)。x)。 printf( 項目 \n)。 其流程圖如下圖 6 所示: 開始輸入要配對的方式 : 1 ) 配件號 ;2 )銷售商號碼; 3 )返回3N結(jié)束并返回主菜單文件能否打開顯示找到的記錄輸入要配對的項 圖 6 配對模塊流程圖 【程序】 /********************************配對模塊 *******************************/ void search2() {
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1