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

正文內容

c語言圖書信息管理系統(tǒng)最終源代碼-閱讀頁

2025-01-05 15:03本頁面
  

【正文】 作者 \n)。ia。stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,amp。stu[i].pay)。 } break。 printf(登錄號 書名 作者 分類號 出版單位 出書時間 價格\n)。ia。stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,amp。stu[i].pay)。 } break。Q39。q39。break。 } liulan02() {FILE *fp。 if((fp=fopen(cc01,r))==NULL) {printf(不能打開次文件 \n)。} fscanf(fp,%d,amp。 printf(\n\n 圖書館備份圖書 %d 本 \n\n,a)。 for(i=0。i++) {fscanf(fp,%ld %s %s %s %s %ld %d,amp。stu[i].time,amp。 printf(%ld\t%s\t%s\t%s\t%s\t%ld\t%d\n,stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,stu[i].time,stu[i].pay)。 } luru() {system(cls)。 luru01()。 int i,n,a,m,j。 shuoming()。exit(0)。a)。 for(i=0。i++) /*將 文件中的圖書讀出來,并裝 的緩沖區(qū)的 stu2 中,待用 */ {fscanf(fp,%ld %s %s %s %s %ld %d,amp。stu2[i].time,amp。} fclose(fp)。exit(0)。 scanf(%d,amp。 /*用戶輸入錄入圖書的本書 */ if(n(100a)amp。n0) { for(i=0。i++) /*錄入圖書的信息,并將該信息裝到緩沖區(qū)的 stu 中,待用 */ { printf(請輸入你的第 %d 圖書信息: \n,i+1)。stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,amp。stu[i].pay)。ja。 scanf(%ld,amp。 printf(\n)。 } } fprintf(fp,%ld %s %s %s %s %ld %d\n,stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,stu[i].time,stu[i].pay)。 } fclose(fp)。exit(0)。a)。 /*下面是用來更新圖書數(shù) */ if((fp=fopen(cc,r+))==NULL) {printf(不能打開次文件 \n)。} fprintf(fp,%d,a+n)。 } else {fclose(fp)。getch()。}} } /*判斷是否修改,返回值是 getch() */ panduan() {char ch。 printf(\n 確定刪除 /修改嗎? (Y/N)\n)。 system(cls)。 int i,a,n=1。 char ch。exit(0)。a)。 printf(登錄號 書名 作者 分類號 出版單位 出書時間 價格 \n)。ia。stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,amp。stu[i].pay)。 } fclose(fp)。 scanf(%ld,amp。 for(i=0。i++) /*for 循環(huán),檢索要刪除的書的位置,并用 n 記下來 */ if(denglu==stu[i].num) n=i。goto L3。N39。n39。break。Y39。y39。exit(0)。 /*從文件中讀出有多少圖書 */ /************ 下面是將要刪除的書的前面的書保存到文件和打印到屏幕上**************/ printf(\n)。in。 printf(%ld\t%s\t%s\t%s\t%s\t%ld\t%d\n,stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,stu[i].time,stu[i].pay)。ia。 printf(%ld\t%s\t%s\t%s\t%s\t%ld\t%d\n,stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,stu[i].time,stu[i].pay)。 fclose(fp)。 printf(* *)。 printf(* *)。 printf(* *)。 printf(********************************************************************************)。 switch(getch()) {case 39。: case 39。:return 1。 case 39。: case 39。:return 2。 } printf(\n)。 system(cls)。 printf(* 修 改 方 式 : *)。 printf(* 1 、 修 改 圖 書 2 、 刪 除 圖 書 *)。 printf(* 使用說明:如要選擇“修改圖書”,直接輸入: 1 退出:Q/q *)。 switch(getch()) {case 49:system(cls)。break。shanchu()。 case 39。: case 39。:system(cls)。 default:printf(\n\n 操作錯誤 按任意鍵返回 \n)。goto L1。 } } /*實現(xiàn)修改功能 */ /****************************************************************/ xiugai01() {FILE *fp。 long denglu。exit(0)。a)。 printf(登錄號 書名 作者 分類號 出版單位 出書時間 價格 \n)。ia。stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,amp。stu[i].pay)。 } fclose(fp)。 scanf(%ld,amp。 getchar()。ia。 if(n==1) {printf(\n 你輸入的登錄號無效,請輸入正確的登錄號 !\n\n)。} printf(\n 你要修改的是什么: 位 0.退出 \n)。 c=getch()。 if(c!=48)printf(\n\n 請輸入你要修改的內容: )。break。 printf(\n)。} case 50:{scanf(%s,stu1[n].writer)。 break。 printf(\n)。} case 52:{scanf(%s,stu1[n].danwei)。 break。stu1[n].time)。 break。stu1[n].pay)。 break。N39。n39。 case 39。: case 39。: { /******************** 下 面 是 用 來 修 改 用 戶 想 要 修 改 的 內 容**************************/ switch(c) { case 49:strcpy(stu[n].name,stu1[n].name)。 case 50:strcpy(stu[n].writer,stu1[n].writer)。 case 51:strcpy(stu[n].fenlei,stu1[n].fenlei)。 case 52:strcpy(stu[n].danwei,stu1[n].danwei)。 case 53:stu[n].time=stu1[n].time。 case 54:stu[n].pay=stu1[n].pay。 } /********格式化 ,并將緩沖區(qū)存在 book1文件中的打印打 *******/ if((fp=fopen(cc,w))==NULL) {printf(不能打開次文件 \n)。} fprintf(fp,%d\n,a)。 printf(\n 修改成功 !\n\n)。ia。 i=n。 fclose(fp)。 int i,n。 shuoming()。 scanf(%d,amp。 printf(請輸入你的圖書信息: \n)。exit(0)。 for(i=0。i++) {scanf(%ld %s %s %s %s %ld %d,amp。stu[i].time,amp。 fprintf(fp,%ld %s %s %s %s %ld %d\n,stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,stu[i].time,stu[i].pay)。 } fclose(fp)。 kaishi()。 switch(b) {case 56:goto L2。 /*運行 jieshuo()函數(shù),實現(xiàn)開始進入系統(tǒng)時檢查文件中是否有圖書 */ system(cls)。 /* 運行 tishi( )函數(shù) 提示 并 用返回值來實現(xiàn)是否繼續(xù)功能 */ if(a==1)goto L1。 /* 若 tishi()返回值是 2 時,退出系統(tǒng),并運行 jieshu()動畫 */ break。 /*49 是 1 的 ASCII 碼,當 start()返回值是 49 是執(zhí)行 chaxun() 實現(xiàn)查詢功能 */ a=tishi02()。 if(a==1) goto L49。 case 50: /* 以下的程序與 case48 執(zhí)行方式相同 */ L50: liulan()。 if(a==2) goto L1。 case 51: L51: luru01()。 if(a==2)goto L1。 break。 a=tishi02()。 if(a==1)goto L52。 case 53: L53: beifen()。 if(a==2)goto L1。 brea
點擊復制文檔內容
高考資料相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1