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

正文內(nèi)容

c語言圖書管理系統(tǒng)上機實驗報告(編輯修改稿)

2025-06-25 22:00 本頁面
 

【文章內(nèi)容簡介】 loc(LEN)。 head = p2 = p1。 if ((fp = fopen(e:\\,rb)) == NULL) { printf(cannot open the file.)。 } for (i = 0。 i sum。 i++) { p2 = p1。 p1 = (struct linklist*)malloc(LEN)。 p2 next = p1。 if(fread(amp。(p2 binfo),sizeof(bbasic),1,fp) != 1) { printf(cannot save the data.)。 } } p2 next = NULL。 fclose(fp)。 return head。}void modify(){ struct linklist* p,*head。 char find[30]。 int i,ky,sum。 FILE *fp。 p= head = create()。 sum = readsum()。 clrscr()。 printf(Plese input the name of the book you want to modify:)。 scanf(%s,find)。 for (i = 0。isum。i++) { if(strcmp(find,p ) == 0) { gotoxy(2,2)。 cprintf(Please input the classfication of chinese library classification:)。 scanf(%s,amp。(p ))。 getchar()。 gotoxy(2,4)。 cprintf(Please input the book39。s number:)。 scanf(%s,amp。(p ))。 getchar()。 gotoxy(2,6)。 cprintf(Please input the book39。s name:)。 scanf(%s,amp。(p ))。 getchar()。 gotoxy(2,8)。 cprintf(Please input the book39。s writer:)。 scanf(%s,amp。(p ))。 getchar()。 gotoxy(2,10)。 cprintf(Please input the the book39。s press:)。 scanf(%s,amp。(p ))。 getchar()。 gotoxy(2,12)。 cprintf(Please input the book39。s edition:)。 scanf(%s,amp。(p ))。 getchar()。 gotoxy(2,14)。 cprintf(Please input the book39。s publish time:)。 scanf(%s,amp。(p ))。 getchar()。 gotoxy(2,16)。 cprintf(Please input the price:)。 scanf(%f,amp。(p ))。 getchar()。 gotoxy(2,18)。 cprintf(Please input the ISBN of the book:)。 scanf(%s,amp。(p ))。 getchar()。 gotoxy(2,20)。 cprintf(Please input the count of books:)。 scanf(%d,amp。(p ))。 getchar()。 gotoxy(2,22)。 cprintf(Please input the lend number of the book:)。 scanf(%d,amp。(p ))。 getchar()。 printf(Press Y to continue or Press anykey to back to menu.)。 ky = key()。 if(ky == Key_Y) { p = head。 i = 1。 clrscr()。 printf(Plese input the name of the book you want to modify:)。 scanf(%s,find)。 } else { p = head。 if ((fp = fopen(e:\\,wb)) == NULL) { printf(cannot open )。 } for (i = 0。i sum 。i++) { if(fwrite(amp。(p binfo),sizeof(bbasic),1,fp) != 1) { clrscr()。 printf(cannot save the data.)。 } p = p next。 } fclose(fp)。 menu()。 } } p = p next。 } clrscr()。 printf(cannot find the book.)。 getch()。}void delete(){ struct linklist* p1,*p2,*head。 char find[30]。 int i,ky,sum,flag = 0。 FILE *fp。 p1 = p2 = head = create()。 sum = readsum()。 clrscr()。 printf(Plese input the name of the book you want to Delete:)。 scanf(%s,find)。 if(strcmp(find,head ) == 0) { head = head next。 sum。 flag = 1。 } else { for (i = 0。i sum 。i++) { p1 = p1 next。 if(strcmp(find,p1 ) == 0) { p1 = p1 next。 p2 next = p1。 sum 。 flag = 1。 break。 } else { p2 = p2 next。 } } } if (flag != 1) { printf(cannot find the book.)。 getch()。 menu()。 } p1 = head。 if ((fp = fopen(e:\\,wb)) == NULL) { printf(cannot open )。 } for (i = 0。i sum 。i++) { if(fwrite(amp。(p1 binfo),sizeof(bbasic),1,fp) != 1) { clrscr()。 printf(cannot save the data.)。 } p1 = p1 next。 } fclose(fp)。 if((fp = fopen(e:\\,wb)) == NULL) { printf(cannot open )。 } if(fwrite(amp。sum,2,1,fp) != 1) { printf(fail to write the .)。 getch()。 exit(0)。 } fclose(fp)。 printf(succeed to delete the anykey to get back to the mainmenu.)。 getch()。}void insert(){ struct linklist* p1,*p2, *head, *temp。 char find[10]。 int i,ky,sum,flag = 0。 FILE *fp。 clrscr()。 sum = readsum()。 p1 = p2 = head = create()。 temp = (struct linklist*)malloc(LEN)。 printf(The number you want to insert behind:)。 scanf(%s,find)。 for(i = 0。i sum。 i++) { p1 = p1next。 if(strcmp(find,p2 ) == 0) { p2 next = temp。 temp next =p1。 sum ++。 flag = 1。 break。 } else { p2 = p2next。 } } if (flag != 1) { printf(cannot find the book.)。 getch()。 menu()。 } clrscr()。 gotoxy(2,2)。 cprintf(Please input the classfication of chinese library classification:)。 scanf(%s,amp。(temp ))。 getchar()。 gotoxy(2,4)。 cprintf(Please input the book39。s number:)。 scanf(%s,amp。(temp ))。 getchar()。 gotoxy(2,6)。 cprintf(Please input the book39。s name:)。 scanf(%s,amp。(temp ))。 getchar()。 gotoxy(2,8)。 cprintf(Please input the book39。s writer:)。 scanf(%s,amp。(temp ))。 getchar()。 gotoxy(2,10)。 cprintf(Please input the the book39。s press:)。 scanf(%s,amp。(temp ))。 getchar()。 gotoxy(2,12)。 cprintf(Please input the book39。s edition:)。 scanf(%s,amp。(temp ))。 getchar()。 gotoxy(2,14)。 cprintf(Please input the book39。s publish time:)。 scanf(%s,amp。(temp ))。 getchar()。 gotoxy(2,16)。 cprintf(Please input the price:)。 scanf(%f,amp。(temp ))。 getchar()。 gotoxy(2,18)。 cprintf(Please input the ISBN of the book:)。 scanf(%s,amp。(temp ))。 getchar()。 gotoxy(2,20)。 cprintf(Please input the count of books:)。 scanf(%d,amp。(temp ))。 getchar()。 gotoxy(2,22)。 cprintf(Please input
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1