




已閱讀5頁,還剩2頁未讀, 繼續(xù)免費閱讀
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
#include #include #include #define N 10struct library int num; char book_name30; char writer30; char sort_num3; char pub_company30; char pub_time30; char prise30; ;typedef struct library LIB;struct historychar his_time30;char his_name30;ANJIAN=2008,許霆;LIB libN;int all=0;int menu(void);void history(void);void book(void);int bookmenu(void);void write(void);void input(void);void search(void);void xiugai(void);void output(void);main() for(;) switch(menu() case 1:history();break; case 2:book();break; case 3:write();break; case 0:exit(1);break; int menu(void) char m3; int n; printf( *歡迎進入法院文檔管理系統(tǒng)*nn); printf(t歡迎使用本院文檔管理系統(tǒng),本系統(tǒng)將為您提供歷史案件信息查詢,工作學習書籍查閱管理。n); printf(t如果您對本院有什么建議,請留下您寶貴的意見!版權所有,北京理工大學珠海學院nnnn) ; printf(-請選擇您需要的服務項-); printf(tt1:歷史案件查詢n); printf(tt2:圖書資料查詢n); printf(tt3:留言建議n); printf(tt0:退出n); printf(ttplease choose a operation(0-3):n); printf(-); scanf(%s,m); n=atoi(m); return(n);void history(void) int i,flag; char m3; char time30; char name30; printf(tt請選擇您需要的案件查詢方式:n); printf(tt1:按時間查詢歷史案件!n); printf(tt2:按當事人姓名查詢歷史案件!n); scanf(%s,m); i=atoi(m); switch(i) case 1: printf(tt請輸入需要查詢案件的時間:n); scanf(%s,time); flag=0; for(i=0;iN;i+) if(strcmp(time,ANJIAN.his_time)=0) printf(tt%st年t%st案n,ANJIAN.his_time,ANJIAN.his_name); flag=1;break; if(flag=0) printf(tt很抱歉沒有這個案件!n); case 2: printf(tt請輸入當事人完整的姓名:n); scanf(%s,name); flag=0; for(i=0;iN;i+) if(strcmp(name,ANJIAN.his_name)=0) printf(%stt%stt%sn,ANJIAN.his_time,ANJIAN.his_name); flag=1;break; if(flag=0) printf(tt很抱歉沒有該同志的記錄!n); void book(void) for(;) switch(bookmenu() case 1:input();break; case 2:search();break; case 3:xiugai();break; case 0:exit(1);break; int bookmenu(void) char m3; int n; printf(ttt-歡迎使用本院圖書管理系統(tǒng)-ttt); printf(tt1:輸入您需要的圖書資料n); printf(tt2:快速查找您需要的圖書資料n); printf(tt3:修改你需要的圖書資料n); printf(tt0:退出n); printf(ttplease choose a operation(0-4):n); scanf(%s,m); n=atoi(m); return(n);void input(void) int i; char m3; for(i=all;iN;i+) all+; printf(請輸入信息:n); printf(tt號碼:n); scanf(%d,&libi.num); printf(tt書名:n); scanf(%s,libi.book_name); printf(tt作者:n); scanf(%s,libi.writer); printf(ttsort_num:n); scanf(%s,libi.sort_num); printf(tt出版商:n); scanf(%s,libi.pub_company); printf(tt出版時間:n); scanf(%s,libi.pub_time); printf(tt價格:n); scanf(%s,libi.prise); a: printf(ttyes/哦了?n); printf(tt1:yesn); printf(tt2:non); scanf(%s,m); if(atoi(m)=1) continue; else if(atoi(m)=2) return; else printf(tt錯誤!n); goto a; void search(void) int i,flag; char m3; char name30; printf(tt請選擇您的存儲方式:n); printf(tt1:按書名!n); printf(tt2:按作者!n); scanf(%s,m); i=atoi(m); switch(i) case 1: printf(tt請輸入書名:n); scanf(%s,name); flag=0; for(i=0;iN;i+) if(strcmp(name,libi.book_name)=0) printf(tt%dn,libi.num); printf(%stt%stt%sn,libi.book_name,libi.writer,libi.sort_num); printf(%stt%stt%sn,libi.pub_company,libi.pub_time,libi.prise); flag=1;break; if(flag=0) printf(tt沒有這本書!n); case 2: printf(tt請輸入作者:n); scanf(%s,name); flag=0; for(i=0;iN;i+) if(strcmp(name,libi.writer)=0) printf(tt%dn,libi.num); printf(%stt%stt%sn,libi.book_name,libi.writer,libi.sort_num); printf(%stt%stt%sn,libi.pub_company,libi.pub_time,libi.prise); flag=1;break; if(flag=0) printf(tt沒有這個作者!n); void xiugai(void) int i,flag; char name30,n3; printf(tt請輸入要修改的書名:n); scanf(%s,name); /*修改書名*/ flag=0; for(i=0;iN;i+) if(strcmp(name,libi.book_name)=0) printf(tt%dn,libi.num); printf(%stt%stt%sn,libi.book_name,libi.writer,libi.sort_num); printf(%stt%stt%sn,libi.pub_company,libi.pub_time,libi.prise); printf(ttplease input xiugais the informations:n); printf(ttnum:n); scanf(%d,&libi.num); printf(ttbook_name:n); scanf(%s,libi.book_name); printf(ttwriter:n); scanf(%s,libi.writer); printf(ttsort_num:n); scanf(%s,libi.sort_num); printf(ttpub_company:n); scanf(%s,libi.pub_company); printf(ttpub_time:n); scanf(%s,libi.pub_time); printf(ttprise:n); scanf(%s,libi.prise); flag=1;break; if
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 護理腫瘤病人禮儀培訓
- 江西省婺源縣2024-2025學年初三學生調研考試數(shù)學試題含解析
- 江蘇省永豐初級中學2024-2025學年七校聯(lián)考高考物理試題一模試卷含解析
- 中國計量大學現(xiàn)代科技學院《中醫(yī)藥學概論》2023-2024學年第二學期期末試卷
- 麗水職業(yè)技術學院《音樂文獻檢索與論文寫作》2023-2024學年第二學期期末試卷
- 渭南市澄城縣2024-2025學年五年級數(shù)學第二學期期末教學質量檢測模擬試題含答案
- 山西藥科職業(yè)學院《醫(yī)學細胞生物學討論》2023-2024學年第一學期期末試卷
- 江蘇省泰州市泰興市黃橋教育聯(lián)盟重點名校2025屆初三下學期聯(lián)考(二)語文試題試卷含解析
- 江蘇大學京江學院《校園音樂活動策劃》2023-2024學年第二學期期末試卷
- 內蒙古藝術學院《教你玩轉信息化學習》2023-2024學年第二學期期末試卷
- 義務教育勞動教育課程標準(2022版)考試題庫(含答案)
- 消費者權益保護法【共54張課件】
- 2025屆高考政治一輪復習統(tǒng)編版選擇性必修三《邏輯與思維》答題技巧
- 中國鹽業(yè)集團有限公司筆試題目
- 壓力容器設計質量手冊+記錄表卡
- 交通施工導行方案
- JT-T-1184-2018城市公共汽電車企業(yè)運營成本測算規(guī)范
- JBT 14585-2024 信號蝶閥(正式版)
- JGJ107-2016鋼筋機械連接技術規(guī)程
- 解讀《保守國家秘密法》2024年修訂專題課件
- 圍墻拆除工程施工方案
評論
0/150
提交評論