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

正文內(nèi)容

c語言作業(yè)_圖書信息管理系統(tǒng)_最終源代碼-免費(fèi)閱讀

2024-09-05 12:21 上一頁面

下一頁面
  

【正文】 \t book_name:amp。quot。/*輸出圖書信息*/ printf(amp。/*頭指針為空*/head=p2=p1=(struct library*)malloc(N)。l_num,pamp。p_name,pamp。gt。gt。參數(shù)說明:N(2)函數(shù)原型:int fclose(FILE *stream)函數(shù)功能:關(guān)閉stream所指的文件并釋放文件緩沖區(qū)參數(shù)說明:fp(3)函數(shù)原型:int getchar()函數(shù)功能:從標(biāo)準(zhǔn)輸入流讀取一個(gè)字符參數(shù)說明:輸入字符串(4)函數(shù)原型:int printf(char *format[,argue,…]);函數(shù)功能:照原樣復(fù)制格式串format中的內(nèi)容到標(biāo)準(zhǔn)輸出設(shè)備,每遇到一個(gè)%,就按規(guī)定的格式,依次輸出一個(gè)表達(dá)式argu的值到標(biāo)準(zhǔn)輸出設(shè)備上。(3)、輸出圖書的信息:輸出書名、作者、序列號(hào)、出版時(shí)間、出版單位。 }L2:jieshu()。default:printf(amp。if(a==2)goto L1。if(a==1)goto L50。 case 49:L49:chaxun()。quot。,stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,stu[i].time,stu[i].pay)。quot。,amp。for(i=0。quot。quot。printf(amp。)。clsamp。%ld\t%s\t%s\t%s\t%s\t%ld\t%d\namp。i++) fprintf(fp,amp。quot。quot。quot。quot。printf(amp。break。,amp。\namp。break。%samp。printf(amp。quot。case 49: {scanf(amp。,c48)。\n您的選擇是:amp。goto L3。lt。%ldamp。}fclose(fp)。stu[i].time,amp。i++) {fscanf(fp,amp。quot。amp。quot。quot。goto L1。)。quot。clsamp。)。quot。quot。printf(amp。clsamp。}printf(amp。quot。quot。printf(amp。**amp。)。quot。,stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,stu[i].time,stu[i].pay)。quot。%ld\t%s\t%s\t%s\t%s\t%ld\t%d\namp。n。 /*從文件中讀出有多少圖書*//************下面是將要?jiǎng)h除的書的前面的書保存到文件和打印到屏幕上**************/printf(amp。quot。quot。quot。for(i=0。)。%ld\t%s\t%s\t%s\t%s\t%ld\t%d\namp。amp。iamp。quot。%damp。))==NULL){printf(amp。/******刪除前打印文件中的信息到屏幕上,以便選擇刪除的圖書的信息**********/ if((fp=fopen(amp。quot。getchar()。if(n!=0){printf(amp。exit(0)。quot。amp。quot。quot。quot。)。quot。j++){ /* 檢查用戶輸入的登錄號(hào)是否重復(fù),直到用戶輸入正確的 */if(stu[i].num==stu2[j].num) /* 登錄號(hào)才跳出此段程序 */{printf(amp。amp。,i+1)。0){for(i=0。 /*用戶輸入錄入圖書的本書*/if(namp。,100a)。不能打開次文件\namp。ccamp。stu2[i].num,stu2[i].name,stu2[i].writer,stu2[i].fenlei,stu2[i].danwei,amp。lt。%damp。))==NULL){printf(amp。 if((fp=fopen(amp。} /*錄入功能*/ luru01(){FILE *fp。quot。quot。,amp。 for(i=0。\n\n圖書館備份圖書%d本\n\namp。quot。quot。 /* 將文件中的信息存到緩沖區(qū),然后打印打屏幕上即可 */int i,a。case ‘Q’:case ‘q’:system(amp。amp。quot。登錄號(hào) 書名 作者 分類號(hào) 出版單位 出書時(shí)間 價(jià)格\namp。}break。stu[i].time,amp。i++) {fscanf(fp,amp。quot。amp。quot。quot。quot。 printf(amp。**amp。)。quot。quot。quot。)。quot。quot。printf(amp。 WELCOME TO .................. \namp。)。quot。quot。printf(amp。\n\n\n\n\n\n\n\n\n\n\namp。 */}}} /*此程序?qū)崿F(xiàn)的是程序開始時(shí)的開始動(dòng)畫*/kaishi(){int i。 /* 證系統(tǒng)能正常運(yùn)行。n!=0)。amp。,amp。NOamp。char a。)。quot。quot。 printf(amp。 YY YY OOOO U U\namp。)。quot。quot。printf(amp。 TTTTTTT HHH HHH A NN N K KK\namp。)。quot。quot。 printf(amp。5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 謝謝使用圖書管理系統(tǒng)5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 amp。)。quot。lt。quot。quot。quot。quot。lt。)。quot。)。\n\n對不起,沒有你要找的書!\n\namp。,n)。,stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,stu[i].time,stu[i].pay)。8。for(i=0。你要找的書可能是:\n\namp。strlwr(ch)。)。quot。}}if(namp。lt。)。quot。scanf(amp。quot。if(n==0) {system(amp。n++。iamp。quot。 /*用戶輸入要找書的出版時(shí)間*/printf(amp。)。\n\n對不起,沒有你要找的書!\n\namp。,n)。,stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,stu[i].time,stu[i].pay)。8。for(i=0。你要找的書可能是:\n\namp。strlwr(ch)。)。quot。}}if(namp。=4) /* 字母的圖書打印出來。amp。lt。)。quot。case 49: printf(amp。strcpy(stu1[i].writer,stu[i].writer)。,amp。 */for(i=0。} /*并且文件開記錄的是圖書的書量,后 */fscanf(fp,amp。ramp。int a=0,i,j,k,n=0,c,d。printf(amp。* 使用說明:如要選擇“書名”,直接輸入:1 退出:0*amp。)。quot。quot。printf(amp。clsamp。fclose(fp2)。switch(getch()){case ‘Y’:case ‘y’:fclose(fp1)。%ld\t%s\t%s\t%s\t%s\t%ld\t%d\namp。amp。iamp。quot。%damp。))==NULL){printf(amp。}if((fp2=fopen(amp。ramp。fclose(fp2)。 switch(getch()){case ‘Y’:case ‘y’:fclose(fp1)。%ld\t%s\t%s\t%s\t%s\t%ld\t%d\namp。amp。iamp。quot。%damp。))==NULL){printf(amp。}if((fp2=fopen(amp。ramp。quot。system(amp。quot。quot。printf(amp。* || || *amp。)。quot。quot。}}} /*此功能實(shí)現(xiàn)的是 開始菜單 的顯示和具體功能的選擇*/start(){printf(amp。quot。quot。if(strcmp(a,c)==0amp。)。quot。quot。}stu2[100]。}stu[100]。gt。includeamp。struct book1{long num,time。 denglu(){char a[15]=amp。,c[15],d[15]。 歡迎登陸圖書管理系統(tǒng) \n\namp。gets(c)。amp。)。請輸入.....amp。quot。)。* || || *amp。printf(amp。quot。quot。)。你想要做什么:amp。quot。)。quot。quot。quot。quot。,a)。lt。stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,amp。quot。fclose(fp2)。break。quot。quot。quot。quot。,a)。lt。stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,amp。quot。fclose(fp2)。break。quot。quot。)。**amp。printf(amp。quot。quot。long b。quot。quot。iamp。amp。strcpy(stu1[i].fenlei,stu[i].fenlei)。quot。\namp。printf(amp。a。amp。 按作者,分類號(hào) */{ /* 出版單位的查詢方法相同。gt。clsamp。}break。printf(amp。quot。iamp。j++)if(ch[j]==stu1[i].writer[j])k++。n++。 if(n==0) {system(amp。quot。scanf(amp。quot。)。lt。}}if(namp。quot。)。quot。\namp。printf(amp。a。gt。clsamp。} break。printf(amp。quot。iamp。j++)if(ch[j]==stu1[i].fenlei[j])k++。n++。 if(n==0) {system(amp。quot。 gets(ch)。你要找的書可能是:\n\namp。for(i=0。8。,stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,stu[i].time,stu[i].pay)。,n)。\n\n對不起,沒有你要找的書!\n\namp。)。20。1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 謝謝使用圖書管理系統(tǒng)1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 amp。 printf(amp。quot。quot。)。0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 謝謝使用圖書管理系統(tǒng)0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 amp。printf(amp。quot。quot。)。 T H H A A N N N K K\namp。printf(amp。quot。quot。)。 Y O O U U\namp。 printf(amp。system(amp。quot。amp。amp。 /* 會(huì)太多,于是檢索圖書量是否在int范圍 /* 若果圖書信息不在int型范圍 /* 就應(yīng)該提示是否增加圖書,以保 */case ‘Y’:printf(amp。 */case ‘n’: /* 選是 運(yùn)行zengjia()函數(shù)增加 */case ‘N’:printf(amp。system(amp。quot。quot。)。 \namp。printf(amp。quot。quot。)。 編寫語言:C 語言 工具:CFree \n\namp。printf(amp。clsamp。)。* 瀏覽方式: *amp。printf(amp。quot。quot。)。,amp。)。a)。登錄號(hào) 書名 作者\(yùn)namp。quot。amp。 case 50: printf(amp。quot。%ld %s %s %s %s %ld %damp。stu[i].pay)。quot。if((fp=fopen(am
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1