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

正文內(nèi)容

c語言課程設計報告圖書管理系統(tǒng)方案-文庫吧

2025-04-18 02:41 本頁面


【正文】 | |\n)。 printf( | [4].返回主菜單 |\n)。 printf( | |\n)。 printf( | [0].退出系統(tǒng) |\n)。 printf( | |\n)。 printf( ============================================================\n)。 printf(請選擇:)。}void student_meun()//【學生功能界面函數(shù)】{ printf( ============================================================\n)。 printf( | |\n)。 printf( | [1].圖書信息查詢 |\n)。 printf( | |\n)。 printf( | [2].辦理借書手續(xù) |\n)。 printf( | |\n)。 printf( | [3].辦理還書手續(xù) |\n)。 printf( | |\n)。 printf( | [4].返回主菜單 |\n)。 printf( | |\n)。 printf( | [0].退出系統(tǒng) |\n)。 printf( | |\n)。 printf( ============================================================\n)。 printf(請選擇:)。}int book_add(int back)//【新書信息錄入函數(shù)】{ FILE *fp。 struct Book *p1。 long long int a,b。 int n。 fp=fopen(,a+)。 if(fp==NULL){printf(數(shù)據(jù)庫打開錯誤!請檢查...\n)。exit(0)。} while(1) { A:system(cls)。//A為一個標志位,用于返回本函數(shù)首界面 p1=(struct Book*)malloc(LONG)。 fseek(fp,11,SEEK_END)。 fscanf(fp,%lld,amp。a)。 if(a0)a=20011001。 fseek(fp,0,SEEK_END)。 printf(上一本圖書編號:%lld\n,a)。 printf(請輸入新圖書信息:\n)。 printf(===============================================================================\n)。 printf(書名 作者 出版社 年份 索取號 單價 數(shù)量\n)。 printf(\n)。 p1number=a+1。 strcpy(p1student_id,未知)。 strcpy(p1student_name,未知)。 strcpy(p1sex,未知)。 scanf(%s %s %s %s %s %s %d,p1title,p1author,p1press,p1year,p1claim_number,p1unit_price,amp。p1collection)。 p1can_borrow=p1collection。 fprintf(fp,%s %s %s %s %s %s %d %d %s %s %s %lld\n,p1title,p1author,p1press,p1year,p1claim_number,p1unit_price,p1collection,p1can_borrow,p1student_name,p1sex,p1student_id,p1number)。 fflush(fp)。 if(1p1collection) { for(b=2。b=p1collection。b++) { p1number=a+b。 fprintf(fp,%s %s %s %s %s %s %d %d %s %s %s %lld\n,p1title,p1author,p1press,p1year,p1claim_number,p1unit_price,p1collection,p1can_borrow,p1student_name,p1sex,p1student_id,p1number)。 fflush(fp)。 } } printf(\a)。 printf( \n)。 printf( [1].繼續(xù)錄入 [2].結束錄入 \n)。 printf( \n)。 printf(請選擇:)。 scanf(%d,amp。n)。 switch(n) { case 1:goto A。 case 2:{fclose(fp)。back=1。return(back)。} } }}int search_2(int back)//【進入圖書信息查詢(學生版)】{ FILE *fp。 char title[100]。 struct Book *p。 int a1=0,b1。 A:system(cls)。//A為一個標志位,用于返回本函數(shù)首界面 back=0。 printf(請輸入書名:)。 scanf(%s,title)。 fp=fopen(,r)。 if(fp==NULL){printf(數(shù)據(jù)庫打開錯誤!請檢查...\n)。exit(0)。} p=(struct Book*)malloc(LONG)。 while(!feof(fp)) { fscanf(fp,%s %s %s %s %s %s %d %d %s %s %s %lld\n,ptitle,pauthor,ppress,pyear,pclaim_number,punit_price,amp。pcollection,amp。pcan_borrow,pstudent_name,psex,pstudent_id,amp。pnumber)。 if(strcmp(title,ptitle)==0) { a1=1。 printf(===============================================================================\n)。 printf(書名 作者 出版社 年份 索取號 館藏 可借\n)。 printf(\n)。 printf(%28s%8s%19s%6s%11s%5d%d\n,ptitle,pauthor,ppress,pyear,pclaim_number,pcollection,pcan_borrow)。 break。 } } if(a1==1) { fclose(fp)。 printf(\n)。 printf( \n)。 printf( [1].繼續(xù)搜索 [2].返回學生功能菜單 [0].退出系統(tǒng) \n)。 printf( \n)。 printf(請選擇:)。 scanf(%d,amp。b1)。 while(1) { switch(b1) { case 1:goto A。break。 case 2:return(back=1)。 case 0: { system(cls)。 printf( \n)。 printf( = 感謝使用,再見! = \n)。 printf( \n)。 exit(0)。 } } } } if(a1==0) { fclose(fp)。 printf(\a \n 未找到與條件相符的圖書!\n\n)。 printf( \n)。 printf( [1].繼續(xù)搜索 [2].返回學生功能菜單 [0].退出系統(tǒng) \n)。 printf( \n)。 printf(請選擇:)。 scanf(%d,amp。b1)。 while(1) { switch(b1) { case 1:goto A。break。 case 2:return(back=1)。 case 0: { system(cls)。 printf( \n)。 printf( = 感謝使用,再見! = \n)。 printf( \n)。 exit(0)。 } } } }}int search_1(int back)//【進入圖書信息查詢函數(shù)(管理員版)】{ int a,back3。 A:system(cls)。//A為一個標志位,用于返回本函數(shù)首界面 back=0。back3=0。 search_menu()。 scanf(%d,amp。a)。 while(1) { switch(a) { case 1:{back3=search_number(back3)。if(back3==1)goto A。}//進入編
點擊復制文檔內(nèi)容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1