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

正文內(nèi)容

實驗室設(shè)備管理系統(tǒng)設(shè)計書-文庫吧

2025-06-04 11:04 本頁面


【正文】 return choice。 錯誤!未找到目錄項。 } 錄入函數(shù)用 void lr()聲明,用到 while(1){ }循環(huán),其中數(shù)字 1是 “true”的含義。如果 IF判斷成立,則將進行錄入。分別錄入設(shè)備 ID號、設(shè)備名稱、設(shè)備種類、報廢日期、設(shè)備是否報廢, , 、購買時間和設(shè)備價格等內(nèi)容。當其中的一條記錄錄入完成后,系統(tǒng)會提示是否已經(jīng)完成一條記錄的添加。(注:其中的 “t++; ”不能丟,其在循環(huán)中起累加的作用) 其中的數(shù)據(jù)輸入為 char類型。 錄入函數(shù)還應(yīng)用了結(jié)構(gòu)體數(shù)組的知識 如下 : typedef struct shebei { char id[10]。 char name[15]。 char kind[15]。 char over[15]。 C 語言課程設(shè)計論文 7 int yesno。 char time[10]。 char price[10]。 }shebei。 shebei sb[200]。 其中的 shebei sb[200]要求最多錄入 200條信息。分別錄入設(shè)備 ID號、設(shè)備名稱、設(shè)備種類、報廢日期、設(shè)備是否報廢 , , 、購買時間和設(shè)備價格等結(jié)構(gòu)體數(shù)組。 其中的數(shù)據(jù)輸入為 char類型(除 int yesno外)。 void lr()//錄入信息 { while(1) { if(strcmp(sb[t].id,0)==0) main()。 printf(\n請輸入設(shè)備名稱 :)。 scanf(%s,sb[t].name)。 。 } } 修改函數(shù)用 void xg()聲 明 , 函數(shù)用了 if...else的選擇和 switch的選擇 , 其中 if ...else的選擇包含在 while循環(huán)中 , 并用了 break的跳轉(zhuǎn)語句。 if...else語句更好的避免了輸入進入死循環(huán)。如 : if(x==0) break。 else { printf(繼續(xù)操作請輸入 1\n)。 scanf(%d,amp。x)。 } 修改函數(shù)中還使用了 strcmp判斷函數(shù),當 strcmp判斷函數(shù)判斷成立時,給予使用者 符合要求的提示,使用者然后進行操作。如 : strcmp(sb[t].id,find)==0 。 在 Switch的使用中,其實現(xiàn)了返回主菜單的操作。 如 : switch(x) { case 0:choose()。break。 case 1:xg()。break。 default:printf(輸入無效 , 自動返回主菜單 \n)。choose()。break。 C 語言課程設(shè)計論文 8 } 其中包含的數(shù)據(jù)類型有 int類型和 char類型兩種 。如 : int x , char find[20]. void xg()//修改 { char find[20]。 int x。 t=0。 printf(請輸入要修改的設(shè)備 ID號 :)。 scanf(%s,find)。 while(1) { if(strcmp(sb[t].id,find)==0) //如果找到的話返回的是符合要求 { break。 } else t++。 } while(1) { printf(確認修改請輸入任意數(shù)字否則輸入 0重新輸入設(shè)備原 id:)。 scanf(%d,amp。x)。 if(x==0) break。 else { printf(請輸入新設(shè)備號 (原來是 %s ):,sb[t].id)。 scanf(%s,sb[t].id)。 printf(\n提示 :該項記錄資料已經(jīng)成功修改 !\n)。 printf(退回主菜單請輸入 0\n)。 printf(繼續(xù)操作請輸入 1\n)。 scanf(%d,amp。x)。 } } } 查詢函數(shù)用 void cx() 聲明 , 使用 do...while(choice!=0)。 循環(huán),其中含 有switch(choice)的選擇語句。 當選擇 0時,跳回 menu函數(shù); 當選擇 1時,跳到設(shè)備號查詢函數(shù); void cx_sbh() C 語言課程設(shè)計論文 9 { do { if(strcmp(sb[t].id,find)==0amp。amp。sb[t].yesno==1) //1表示設(shè)備沒報廢 { t++。 } else t++。 }while (t100)。 if (choice==1) choose()。 else cx()。 } 設(shè)備號查詢函數(shù)用 void cx_sbh()聲明 , 使用 do...while(choice!=0)。 循環(huán) , 其中含有 if ...esle的選擇語句。 其中包含的數(shù)據(jù)類型有 int類型 .如: int choice等。 當選擇 2時,跳到設(shè)備名稱查詢函數(shù); void cx_mc()//設(shè)備名稱查詢 { do { if(strcmp(sb[t].name,ming)==0amp。amp。sb[t].yesno==1) //1表示設(shè)備沒報廢 { } else t++。 } while (t100)。 if (choice==1) choose()。 else cx()。 } 設(shè)備名稱查詢函數(shù)用 void cx_mc()聲明 , 使用 do...while(choice!=0)。 循環(huán) , 其中含有 if esle的選擇語句。 其中包含的數(shù)據(jù)類型有 int類型 .如: int choice等。 否則輸出 輸入無效請重新輸入 。 C 語言課程設(shè)計論文 10 查詢函數(shù)包含的數(shù)據(jù)類型有 int類型 .如 : int choice等。 void cx()//查詢 { int choice。 do { switch(choice) { case 0:menu()。break。 case 1:cx_sbh()。break。 case 2:cx_mc()。break。 default:printf(輸入無效請重新輸入 \n)。cx()。 break。 } } while(choice!=0)。 } 統(tǒng)計函數(shù)用 void tj()聲明,在 if的使用中,其實現(xiàn)了返回菜單的操作。如: printf(鍵入數(shù)字 1返回主菜單 \n)。 printf(鍵入數(shù)字任意鍵返回上層菜單 \n)。 scanf(%d,amp。choice)。 if (choice==1) choose() 。 函數(shù)中還使用了 strcmp判斷函數(shù) , 當 strcmp判斷函數(shù)判斷成立時 , 給予使用者符合要求的提示 , 使 用 者 然 后 進 行 操 作 。 如 :(strcmp(sb[t].kind,tong)==0amp。amp。sb[t].yesno==1。而 do…while 循環(huán)的使用保證了多次統(tǒng)計的使用。(注:其中的 “t++; ”不能丟,其在循環(huán)中起累加的作用)。 統(tǒng)計函數(shù)包含的數(shù)據(jù)類型有 int類型和 char類型 .如 : int choice和 char tong 等。 void tj()//統(tǒng)計 { int choice。 char tong[20]。 printf(\n輸入你要統(tǒng)計的設(shè)備種類 :)。 scanf(%s,tong)。 do { if(strcmp(sb[t].kind,tong)==0amp。amp。sb[t].yesno==1) //1表示設(shè)備沒報廢 { printf(設(shè)備號 設(shè)備名稱 設(shè)備種類 報廢日期 是否報廢 購買時間 價格 \n)。 C 語言課程設(shè)計論文 11 printf(\n%13s%11s%7s%10s%13d%10s%5s\n,sb[t].id,sb[t].name,sb[t].kind,sb[t].over,sb[t].yesno,sb[t].time,sb[t].price)。 t++。 } else t++。 } while (t100)。 printf(鍵入數(shù)字 1返回主菜單 \n)。 printf(鍵入數(shù)字任意鍵返回上層菜單 \n)。 scanf(%d,amp。choice)。 if (choice==1) choose() 。 } 查詢函數(shù)用 void
點擊復制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1