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

正文內(nèi)容

c語言實現(xiàn)圖書管理系統(tǒng)實訓課程設計報告-閱讀頁

2024-09-16 18:04本頁面
  

【正文】 C 語言的重要方法,也是本程序的靈魂,它在本程序中既有“穿針引線”的作用,也起到了對數(shù)據(jù)進行分析、存貯、讀取等重要的作用,本程序在使用循環(huán)過程中對循環(huán)進行 了多方法的應用也是一個“亮點”,它使程序變得結構合理,通俗易懂,也降低了程序的難度。 數(shù)組在程序中有著很重要的作用,對數(shù)據(jù)的貯存、輸入、讀取起 25 著很重要的作用, 本程序幾乎所有數(shù)據(jù)都以數(shù)組進行輸入、貯存、讀取 和輸入,數(shù)組的的使用在本程序中有很大的好處。 結構體的使用,為本程序提供了很大方便,也提高了程序的可讀性,結構數(shù)組方便了對數(shù)據(jù)的管理。我們相信通過這次課程設計的鍛煉,我們在今后的學習實踐中,一定可以做出更好的作品。//書號 char name[20]。//作者 char publish[50]。//出版時間 float price。 26 typedef struct { int count。//最大可有 100本書 }mlibrary。 void myprintf(int n) { int i=0。i=n。 } void mm(int n,int *q) { int y, k, m,r=0,h[4]。k4。 r=r+h[k]。 scanf(%d,amp。 printf( %c %c,14,14)。 printf( %c %c,14,14)。 printf( %c %c ?=,14,14)。y)。 else *q=1。 *q=1。 { FILE *fp。 return。,sizeof(int),1,fp)。 fclose(fp)。 system(cls)。 scanf(%s,[].number)。 scanf(%s,[].name)。 scanf(%s,[].author)。 scanf(%s,[].publish)。 scanf(%s,[].time)。 fflush(stdin)。[].price)。 printf(\n是否繼續(xù)錄入 ( 。 fflush(stdin)。y)。 break。 } void lookup() { system(cls)。 for (int i=0。i++) { printf(%s\t%s\t%s\t%s\t%s\t%\n,[i].number,k[i].name,[i].author,[i].publish,[i].time,[i].price)。 getchar()。 int flag=1。 fflush(stdin)。 printf(圖書號 \t圖書名 \t作者名 \t出版社 \t出版日期 \t圖書價格 \n)。i。 printf(%s\t%s\t%s\t%s\t%s\t%\n,[i].number,k[i].name,[i].author,[i].publish,[i].time,[i].price)。 } 29 fflush(stdin)。 } void search_by_author() /*定義按作者名查詢 */ { char s3[20]。 printf(請輸入要查詢的書的作者 : )。 scanf(%s,s3)。 for(int i=0。i++ ) if(strcmp(s3,[i].author)==0) { flag=0。 } if (flag) { printf(cannot found!)。 getchar()。 system(cls)。 printf(開始查詢 \n)。 printf(\t\t\t2search_by_writer\n)。 printf(\t\t******************************\n) 。 fflush(stdin)。a)。 break。 break。 } } void del() /*定義刪除函數(shù) */ { char number[10]。 /*清屏 */ printf(\n Please type in the number of the book you want to delete:)。 scanf(%s,number)。 for (i=0。i++) { if(strcmp(number,[i].number)==0)break。i。 strcpy([i].number,[i+1].number)。 strcpy([i].author,[i+1].author)。 [i].price=[i+1].price。 } else printf(\n cannot found!\n)。 fflush(stdin)。 31 } void update()//修改圖書信息 { char number[10]。 /*清屏 */ printf(\n Please type in the number of the book you want to delete:)。 scanf(%s,number)。 for (i=0。i++) { if(strcmp(number,[i].number)==0) { printf(圖書號 \t圖書名 \t作者名 \t出版社 \t出版日期 \t圖書價格 \n)。 break。 printf(\n\t\t請輸入修改后此圖書的信息 \n)。 scanf(%s,)。 scanf(%s,)。 scanf(%s,)。 scanf(%s,)。 scanf(%s,)。 fflush(stdin)。)。 strcpy([i].number,)。 strcpy([i].author,)。 32 [i].price=。 } else printf(\n cannot found!\n)。 getchar()。 if((fp=fopen(,r))==NULL) { printf(\n不能打開圖書信息庫 \n)。 printf(\n初始化圖書信息庫 ,初始化之后要重啟程序 \n)。 fwrite(amp。 fclose(fp)。 } fread(amp。 fread(,sizeof([0]),fp)。 int a, q=1,number。 do { system(cls)。 myprintf(33)。 printf( %c 歡迎來到圖書管理系統(tǒng) %c,14,14)。 printf(\n)。 printf(\n)。 printf(\n)。 printf(\n)。 scanf(%d,amp。 printf( %c %c,14,14)。q)。 default :printf(該管理員不存在 !)。 } }while(q)。 printf(\n\n\n\n\n\t\t\t\t圖書信息管理系統(tǒng) \t\t\t\t\n)。 printf(\t\t| 1 圖書信息錄入 |\n)。 printf(\t\t| 3 圖書信息查詢 |\n)。 printf(\t\t| 5 圖書信息修改 |\n)。 printf(\t\t|******************************************|\n)。 fflush(stdin)。a)。 break。 break。 break。 break。 break。 break。 } }while(a!=0)。 }
點擊復制文檔內(nèi)容
研究報告相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1