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

正文內(nèi)容

c語言圖書管理系統(tǒng)上機實驗報告-預(yù)覽頁

2025-06-22 22:00 上一頁面

下一頁面
 

【正文】 typedef struct texel_struct { unsigned char ch。 for(i=30。 =0x1f。t)。 }。 typedef struct texel_struct { unsigned char ch。 for(i=30。 =0x1f。t)。 }。 break。 break。 default:printf(Error)。 gotoxy(30,7)。 gotoxy(30,10)。 gotoxy(30,16)。 highvideo()。 textcolor(LIGHTGRAY)。 textcolor(WHITE)。 /*增加圖書基本信息*/ case 10:addbuy()。 /*增加圖書借閱信息*/ case 16:menu()。 }}void addbook() /*增加圖書基本信息*/{ int ky, sum = 0。 textcolor(WHITE)。 } fclose(fp)。 cprintf(Please input the classfication of chinese library classification:)。 gotoxy(2,4)。)。s name:)。 gotoxy(2,8)。)。s press:)。 gotoxy(2,12)。)。s publish time:)。 gotoxy(2,16)。 getchar()。)。 scanf(%d,amp。 cprintf(Please input the lend number of the book:)。 gotoxy(10,25)。 if(fwrite(amp。 fclose(fp)。 } if(fwrite(amp。 }。 */void addbuy() /*增加圖書購買信息*/{ int ky。 textcolor(WHITE)。 } do { clrscr()。 scanf(%s,amp。s writer:)。 cprintf(Please input the book39。 gotoxy(2,8)。 gotoxy(2,10)。 gotoxy(2,12)。 gotoxy(2,14)。 gotoxy(10,20)。pinfo,sizeof(pinfo),1,fp) != 1) { clrscr()。 menu()。 textbackground(BLUE)。 exit(0)。s name:)。 cprintf(Please input the borrower39。 gotoxy(2,6)。 gotoxy(2,8)。)。)。)。 if(fwrite(amp。 fclose(fp)。 FILE *fp。 if ((fp = fopen(e:\\,rb)) == NULL) { printf(cannot open the file.)。 p1 = (struct linklist*)malloc(LEN)。 } } p2 next = NULL。 char find[30]。 sum = readsum()。 for (i = 0。 scanf(%s,amp。 cprintf(Please input the book39。 getchar()。 scanf(%s,amp。 cprintf(Please input the book39。 getchar()。 scanf(%s,amp。 cprintf(Please input the book39。 getchar()。 scanf(%s,amp。 cprintf(Please input the price:)。 gotoxy(2,18)。 getchar()。(p ))。 scanf(%d,amp。 ky = key()。 printf(Plese input the name of the book you want to modify:)。 } for (i = 0。 printf(cannot save the data.)。 } } p = p next。}void delete(){ struct linklist* p1,*p2,*head。 p1 = p2 = head = create()。 scanf(%s,find)。 } else { for (i = 0。 p2 next = p1。 } else { p2 = p2 next。 } p1 = head。i++) { if(fwrite(amp。 } fclose(fp)。 getch()。 getch()。 FILE *fp。 temp = (struct linklist*)malloc(LEN)。i sum。 sum ++。 } } if (flag != 1) { printf(cannot find the book.)。 gotoxy(2,2)。 getchar()。 scanf(%s,amp。 cprintf(Please input the book39。 getchar()。 scanf(%s,amp。 cprintf(Please input the the book39。 getchar()。 scanf(%s,amp。 cprintf(Please input the book39。 getchar()。(temp ))。 scanf(%s,amp。 cprintf(Please input the count of books:)。 gotoxy(2,22)。 getchar()。 if(ky == Key_Y) { insert()。i sum 。 } p1 = p1 next。sum,2,1,fp) != 1) { printf(fail to write the .)。 menu()。 textbackground(RED)。 cprintf(Delete Book)。 cprintf(Back)。 cprintf(The Library Managemnt Program)。 textbackground(BLUE)。 y=choose(7,16)。 case 10:delete()。menu()。break。 textbackground(RED)。 cprintf(Search by Writer)。 textcolor(RED)。 gotoxy(35,22)。 textbackground(BLUE)。break。 default:printf(Error)。 if((fp = fopen(e:\\,rb)) != NULL) /*讀取圖書基本信息數(shù)量sum*/ { fread(amp。 getch()。}void orderw(bbasic binfo[100]){ FILE *fp。 /*讀取圖書基本信息數(shù)量sum*/ if((fp = fopen(e:\\,rb)) ==NULL) /*讀取文件中所存的圖書基本信息*/ { printf(cannot open the )。i sum 。 exit(0)。 j++) /* 插入排序 */ { temp = binfo[j]。 (strcmp(binfo[i].writer, ) 0)) { binfo[i + 1] = binfo[i]。 int sum,i ,j。 getch()。 i++) { if (fread(amp。 } } fclose(fp)。 i = j 1。 i 。 while(start end) { mid = (start + end)/2。 } if (strcmp(find,binfo[start].name) == 0) { return start。 while(start end) { mid = (start + end)/2。 } if (strcmp(find,binfo[start].writer) == 0) { return start。 long i。 textcolor(WHITE)。 getch()。 i++) { if (fread(amp。 } } /*讀取文件中所存的圖書基本信息*/ fclose(fp)。 scanf(%s,find)。s name is:%s\n, binfo[obj].name)。s cclc is:%s\n, binfo[obj].type)。s publish time is:%s\n, binfo[obj].time)。s edition is:%s\n, binfo[obj].edition)。s price is:%f\n, binfo[obj].price)。s cclc is:%d\n, binfo[obj].lendnum)。 if (ky == Key_Y) { searchname()。 long i。 textcolor(WHITE)。 getch()。 i++) { if (fread(amp。 } } /*讀取文件中所存的圖書基本信息*/ fclose(fp)。 scanf(%s,find)。s name is:%s\n, binfo[obj].name)。s cclc is:%s\n, binfo[obj].type)。s publish time is:%s\n, binfo[obj].time)。s edition is:%s\n, binfo[obj].edition)。s price is:%f\n, binfo[obj].price)。s cclc is:%d\n, binfo[obj].lendnum)。 if (ky == Key_Y) { searchwriter()。 gotoxy(35,22)。 gotoxy(25, 2)。 normvideo()。 cprintf(Book List)。 gotoxy(30,13)。menu()。break。break。 int j。 textcolor(LIGHTGRAY)。 sum = readsum()。 getch()。 i++) { if (fread(amp。 } gotoxy(2,4 + j)。 gotoxy(48,4 + j)。 cprintf(press anykey to clear screen and continue display book list.)。 _window()。 cprintf( book list )。 } } fclose(fp)。 getch()。 float rmb = 0。 textcolor(LIGHTGRAY)。 sum = readsum()。 } for (i = 0。 getch()。 gotoxy(2,3)。 gotoxy(25,23)。與解題相比有趣很多。第二章就是文本屏幕界面設(shè)計,看了以后,勉強算是把界面做出來了,然后慢慢加了一些光標,邊框,變換了一下顏色,使界面美觀了一些。但應(yīng)該存的文件就不連續(xù),空了很多吧。比如數(shù)據(jù)結(jié)構(gòu)的選擇,時間復雜度的考慮,優(yōu)化的算法,結(jié)構(gòu)化程序的設(shè)計,用宏定義使程序簡單明了等等。
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1