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

正文內(nèi)容

c語言圖書信息管理系統(tǒng)最終源代碼-資料下載頁

2024-12-16 15:03本頁面

【導(dǎo)讀】{ "error_code": 17, "error_msg": "Open api daily request limit reached" }

  

【正文】 1 、 修 改 圖 書 2 、 刪 除 圖 書 *)。 printf(* *)。 printf(* 使用說明:如要選擇“修改圖書”,直接輸入: 1 退出:Q/q *)。 printf(********************************************************************************)。 switch(getch()) {case 49:system(cls)。xiugai01()。break。 case 50:system(cls)。shanchu()。break。 case 39。q39。: case 39。Q39。:system(cls)。break。 default:printf(\n\n 操作錯誤 按任意鍵返回 \n)。getch()。goto L1。break。 } } /*實(shí)現(xiàn)修改功能 */ /****************************************************************/ xiugai01() {FILE *fp。 int i,a,n=1,N,c。 long denglu。 if((fp=fopen(cc,r))==NULL) {printf(不能打開次文件 \n)。exit(0)。} fscanf(fp,%d,amp。a)。 printf(現(xiàn)有圖書 %d 本 \n,a)。 printf(登錄號 書名 作者 分類號 出版單位 出書時(shí)間 價(jià)格 \n)。 for(i=0。ia。i++) {fscanf(fp,%ld %s %s %s %s %ld %d,amp。stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,amp。stu[i].time,amp。stu[i].pay)。 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)。 /**********************輸入你要修改的內(nèi)容,但為進(jìn)行修改 ******************/ L3: printf(請輸入你要修改書的登錄號: )。 scanf(%ld,amp。denglu)。 getchar()。 for(i=0。ia。i++) if(denglu==stu[i].num) n=i。 if(n==1) {printf(\n 你輸入的登錄號無效,請輸入正確的登錄號 !\n\n)。goto L3。} printf(\n 你要修改的是什么: 位 0.退出 \n)。 printf(\n 您的選擇是: )。 c=getch()。 printf(%d\n,c48)。 if(c!=48)printf(\n\n 請輸入你要修改的內(nèi)容: )。 /********************* 先 將 修 改 的 內(nèi) 容 放 入 book1 中 保 存 在 緩 沖 區(qū)*********************/ switch(c) {case 48:xiugai()。break。 case 49: { scanf(%s,stu1[n].name)。 printf(\n)。 break。} case 50:{scanf(%s,stu1[n].writer)。 printf(\n)。 break。} case 51:{scanf(%s,stu1[n].fenlei)。 printf(\n)。 break。} case 52:{scanf(%s,stu1[n].danwei)。 printf(\n)。 break。} case 53:{scanf(%ld,amp。stu1[n].time)。 printf(\n)。 break。} case 54:{scanf(%d,amp。stu1[n].pay)。 printf(\n)。 break。} } /**************************** 判斷是否真的要修改********************************/ if(c!=48) {switch(panduan()) {case 39。N39。: case 39。n39。:break。 case 39。Y39。: case 39。y39。: { /******************** 下 面 是 用 來 修 改 用 戶 想 要 修 改 的 內(nèi) 容**************************/ switch(c) { case 49:strcpy(stu[n].name,stu1[n].name)。break。 case 50:strcpy(stu[n].writer,stu1[n].writer)。break。 case 51:strcpy(stu[n].fenlei,stu1[n].fenlei)。break。 case 52:strcpy(stu[n].danwei,stu1[n].danwei)。break。 case 53:stu[n].time=stu1[n].time。break。 case 54:stu[n].pay=stu1[n].pay。break。 } /********格式化 ,并將緩沖區(qū)存在 book1文件中的打印打 *******/ if((fp=fopen(cc,w))==NULL) {printf(不能打開次文件 \n)。exit(0)。} fprintf(fp,%d\n,a)。 system(cls)。 printf(\n 修改成功 !\n\n)。 for(i=0。ia。i++) 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)。 i=n。 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)。 } } } } /*實(shí)現(xiàn)增加功能,與錄入功能相同 */ zengjia() {FILE *fp。 int i,n。 system(cls)。 shuoming()。 printf(你要增加幾本書 ?( 11000) \n)。 scanf(%d,amp。n)。 printf(請輸入你的圖書信息: \n)。 if((fp=fopen(cc,w))==NULL) {printf(不能打開次文件 \n)。exit(0)。} fprintf(fp,%d\n,n)。 for(i=0。in。i++) {scanf(%ld %s %s %s %s %ld %d,amp。stu[i].num,stu[i].name,stu[i].writer,stu[i].fenlei,stu[i].danwei,amp。stu[i].time,amp。stu[i].pay)。 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)。 printf(%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)。 } main() {int a,b。 kaishi()。 /*運(yùn)行 kaishi()函數(shù),實(shí)現(xiàn)開始動畫 */ b=denglu()。 switch(b) {case 56:goto L2。 } L1: jieshuo()。 /*運(yùn)行 jieshuo()函數(shù),實(shí)現(xiàn)開始進(jìn)入系統(tǒng)時(shí)檢查文件中是否有圖書 */ system(cls)。 /*清掉前面顯示在屏幕上的所有內(nèi)容 */ switch(start()) /*用 switch 語句來實(shí)現(xiàn)開始是菜單功能 */ { case 48: /* 48 是 0 的 ASCII 碼,如果 Start()返回值是 48 時(shí)就執(zhí)行該語句 */ a=tishi02()。 /* 運(yùn)行 tishi( )函數(shù) 提示 并 用返回值來實(shí)現(xiàn)是否繼續(xù)功能 */ if(a==1)goto L1。 /* 若 tishi()的返回值為 1 時(shí),則返回到 L1:處繼續(xù)switch() */ if(a==2) jieshu()。 /* 若 tishi()返回值是 2 時(shí),退出系統(tǒng),并運(yùn)行 jieshu()動畫 */ break。 case 49: L49: chaxun()。 /*49 是 1 的 ASCII 碼,當(dāng) start()返回值是 49 是執(zhí)行 chaxun() 實(shí)現(xiàn)查詢功能 */ a=tishi02()。 if(a==2) goto L1。 if(a==1) goto L49。 /* 當(dāng) tishi()返回值是 1 時(shí) 繼續(xù) chuxu(),下同 */ break。 case 50: /* 以下的程序與 case48 執(zhí)行方式相同 */ L50: liulan()。 a=tishi02()。 if(a==2) goto L1。 if(a==1)goto L50。 case 51: L51: luru01()。 a=tishi02()。 if(a==2)goto L1。 if(a==1)goto L51。 break。 case 52: L52: xiugai()。 a=tishi02()。 if(a==2)goto L1。 if(a==1)goto L52。 break。 case 53: L53: beifen()。 a=tishi02()。 if(a==2)goto L1。 if(a==1)goto L53。 break。 d
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1