diff --git a/bin/Debug/图书管理系统.exe b/bin/Debug/图书管理系统.exe index 7b31d1e..95358a9 100644 Binary files a/bin/Debug/图书管理系统.exe and b/bin/Debug/图书管理系统.exe differ diff --git a/book.txt b/book.txt index 9665c65..d5e2893 100644 --- a/book.txt +++ b/book.txt @@ -1,4 +1,12 @@ ħ 1 + Ұ Ұ 3 + Ұ Ұ 3 +ԭDz Ϧ ഺѧ Ϧ 3 +֮ҹ Ұ Ұ 4 +ҹ Ұ Ұ 5 + Ϧ ഺѧ Ϧ 5 +ӻ Ұ Ұ 6 +΢Ӧѧ 6 ֮ ʮ」 ʮ」 11 ҹ С С 12 ͼ ɨ ɨ 13 diff --git a/lend.txt b/lend.txt index 70cfda0..7bafb08 100644 --- a/lend.txt +++ b/lend.txt @@ -1,2 +1,3 @@ ħ ˼ ħ ة + Ұ Ұ ˼ diff --git a/menu.cpp b/menu.cpp index b604dd2..434a511 100644 --- a/menu.cpp +++ b/menu.cpp @@ -530,6 +530,15 @@ void add_() { } T = T->next; } + for(i = H; i != NULL; i = i->next) + for(j = i->next; j != NULL; j = j->next) + if(i->number > j->number) { + Swap(i->name, j->name); + Swap(i->author, j->author); + Swap(i->type, j->type); + Swap(i->publish, j->publish); + Swap_num(&i->number, &j->number); + } T = H; FILE *fp = fopen("book.txt", "w"); while(T != NULL) { @@ -1345,6 +1354,15 @@ void Num(int a) { } } T->number += a; + for(i = H; i != NULL; i = i->next) + for(j = i->next; j != NULL; j = j->next) + if(i->number > j->number) { + Swap(i->name, j->name); + Swap(i->author, j->author); + Swap(i->type, j->type); + Swap(i->publish, j->publish); + Swap_num(&i->number, &j->number); + } T = H; FILE *fp = fopen("book.txt", "w"); while(T != NULL) { diff --git a/obj/Debug/menu.o b/obj/Debug/menu.o index aa23c6a..0c5eac4 100644 Binary files a/obj/Debug/menu.o and b/obj/Debug/menu.o differ diff --git a/图书管理系统.depend b/图书管理系统.depend index 042ee1d..c737557 100644 --- a/图书管理系统.depend +++ b/图书管理系统.depend @@ -6,7 +6,7 @@ 1546862293 source:c:\users\faceseace\desktop\ͼϵͳ\main.cpp -1543971123 c:\users\faceseace\desktop\ͼϵͳ\information.h +1546909335 c:\users\faceseace\desktop\ͼϵͳ\information.h 1546868050 source:c:\users\faceseace\desktop\ͼϵͳ\windows.cpp @@ -20,7 +20,7 @@ "information.h" -1546868110 source:c:\users\faceseace\desktop\ͼϵͳ\login.cpp +1546909335 source:c:\users\faceseace\desktop\ͼϵͳ\login.cpp @@ -54,3 +54,28 @@ "information.h" +1546909335 source:e:\book\login.cpp + + + + + + + "information.h" + +1546909335 e:\book\information.h + +1546862293 source:e:\book\main.cpp + +1547022399 source:e:\book\menu.cpp + + + + + + + "information.h" + +1546868050 source:e:\book\windows.cpp + + diff --git a/图书管理系统.layout b/图书管理系统.layout index 0d81f7c..d8cc19c 100644 --- a/图书管理系统.layout +++ b/图书管理系统.layout @@ -2,33 +2,24 @@ - + - + - + - + - + - + - + - - - - - - + - - - -