You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

335 lines
8.8 KiB

6 years ago
#include<stdio.h>
#include<string.h>
#include<windows.h>
#include<math.h>
#include<stdlib.h>
#include<time.h>
#include<dos.h>
int main() {
system("color f4");
struct BOOK {
char title[20];
char author[20];
char publice[20];
char time[20];
float price;
char locate[20];
int base;
//<2F><EFBFBD><E9BCAE><EFBFBD>ƣ<EFBFBD><C6A3><EFBFBD><EFBFBD>ߣ<EFBFBD><DFA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E7A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD><DAA3>۸<EFBFBD><DBB8><EFBFBD><EFBFBD><EFBFBD>Ŀ¼<C4BF>е<EFBFBD>λ<EFBFBD><CEBB>
};
struct BOOK *book;
int N=21;
book=(struct BOOK*)malloc(N*sizeof(struct BOOK));
strcpy( book[0].title, "<EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>֮<EFBFBD>ۡ<EFBFBD>");
strcpy( book[0].author, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[0].publice, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[0].time, "2016<EFBFBD><EFBFBD>5<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[0].price=99.00;
strcpy( book[0].locate, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><EFBFBD>");
book[0].base=19;
strcpy( book[1].title, "<EFBFBD><EFBFBD><EFBFBD>˼<EFBFBD>ʧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[1].author, "̫<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[1].publice, "<EFBFBD>ִ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[1].time, "2016<EFBFBD><EFBFBD>10<EFBFBD><EFBFBD>");
book[1].price=26.00;
strcpy( book[1].locate, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD><EFBFBD>");
book[1].base=9;
strcpy( book[2].title, "<EFBFBD><EFBFBD>Χ<EFBFBD>ǡ<EFBFBD>");
strcpy( book[2].author, "Ǯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[2].publice, "<EFBFBD>Ϻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[2].time, "1947<EFBFBD><EFBFBD>");
book[2].price=40.00;
strcpy( book[2].locate, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>C<EFBFBD><EFBFBD>");
book[2].base=49;
strcpy( book[3].title, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[3].author, "Ī<EFBFBD><EFBFBD>");
strcpy( book[3].publice, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[3].time, "2007<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[3].price=28.00;
strcpy( book[3].locate, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>D<EFBFBD><EFBFBD>");
book[3].base=39;
strcpy( book[4].title, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[4].author, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˹");
strcpy( book[4].publice, "<EFBFBD>¾<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD>");
strcpy( book[4].time, "2011<EFBFBD><EFBFBD>6<EFBFBD><EFBFBD>");
book[4].price=39.50;
strcpy( book[4].locate, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>E<EFBFBD><EFBFBD>");
book[4].base=29;
strcpy( book[5].title,"<EFBFBD><EFBFBD>ƽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[5].author, "·ң");
strcpy( book[5].publice, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ճ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[5].time, "2017<EFBFBD><EFBFBD>6<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[5].price=29.90;
strcpy( book[5].locate, "<EFBFBD><EFBFBD>¥302");
book[5].base=50;
strcpy( book[6].title,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[6].author, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[6].publice, "<EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[6].time, "2016<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[6].price=13.10;
strcpy( book[6].locate, "<EFBFBD><EFBFBD>¥302");
book[6].base=50;
strcpy( book[7].title,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[7].author, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[7].publice, "<EFBFBD>Ϻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ij<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[7].time, "2011<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[7].price=29.90;
strcpy( book[7].locate, "<EFBFBD><EFBFBD>¥302");
book[7].base=50;
strcpy( book[8].title,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӡ<EFBFBD>");
strcpy( book[8].author, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[8].publice, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̴<EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[8].time, "2017<EFBFBD><EFBFBD>8<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[8].price=16.30;
strcpy( book[8].locate, "<EFBFBD><EFBFBD>¥302");
book[8].base=50;
strcpy( book[9].title,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϧʰ<EFBFBD><EFBFBD>");
strcpy( book[9].author, "³Ѹ");
strcpy( book[9].publice, "̨<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[9].time, "2012<EFBFBD><EFBFBD>8<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[9].price=22.40;
strcpy( book[9].locate, "<EFBFBD><EFBFBD>¥302");
book[9].base=50;
strcpy( book[10].title,"<EFBFBD><EFBFBD><EFBFBD>軨Ů<EFBFBD><EFBFBD>");
strcpy( book[10].author, "С<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[10].publice, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[10].time, "2017<EFBFBD><EFBFBD>8<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[10].price=10.10;
strcpy( book[10].locate, "<EFBFBD><EFBFBD>¥302");
book[10].base=50;
strcpy( book[11].title,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[11].author, "<EFBFBD><EFBFBD>˹<EFBFBD><EFBFBD>");
strcpy( book[11].publice, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[11].time, "2017<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[11].price=15.50;
strcpy( book[11].locate, "<EFBFBD><EFBFBD>¥302");
book[11].base=50;
strcpy( book[12].title,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڡ<EFBFBD>");
strcpy( book[12].author, "˹<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[12].publice, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[12].time, "2017<EFBFBD><EFBFBD>7<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[12].price=18.90;
strcpy( book[12].locate, "<EFBFBD><EFBFBD>¥302");
book[12].base=50;
strcpy( book[13].title,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[13].author, "<EFBFBD><EFBFBD>˼<EFBFBD><EFBFBD>Ү<EFBFBD><EFBFBD>˹<EFBFBD><EFBFBD>");
strcpy( book[13].publice, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[13].time, "2016<EFBFBD><EFBFBD>11<EFBFBD><EFBFBD>10<EFBFBD><EFBFBD>");
book[13].price=27.20;
strcpy( book[13].locate, "<EFBFBD><EFBFBD>¥302");
book[13].base=50;
strcpy( book[14].title,"<EFBFBD><EFBFBD>ս<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD><EFBFBD>");
strcpy( book[14].author, "<EFBFBD>з<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>˹̩");
strcpy( book[14].publice, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[14].time, "2016<EFBFBD><EFBFBD>11<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[14].price=56.70;
strcpy( book[14].locate, "<EFBFBD><EFBFBD>¥302");
book[14].base=50;
strcpy( book[15].title,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʥĸԺ<EFBFBD><EFBFBD>");
strcpy( book[15].author, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[15].publice, "<EFBFBD>Ϻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ճ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[15].time, "2008<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[15].price=14.10;
strcpy( book[15].locate, "<EFBFBD><EFBFBD>¥302");
book[15].base=50;
strcpy( book[16].title,"<EFBFBD><EFBFBD><EFBFBD>ҡ<EFBFBD>");
strcpy( book[16].author, "<EFBFBD>ͽ<EFBFBD>");
strcpy( book[16].publice, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[16].time, "1981<EFBFBD><EFBFBD>9<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[16].price=24.10;
strcpy( book[16].locate, "<EFBFBD><EFBFBD>¥302");
book[16].base=50;
strcpy( book[17].title,"<EFBFBD><EFBFBD><EFBFBD>߳ǡ<EFBFBD>");
strcpy( book[17].author, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[17].publice, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ճ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[17].time, "2018<EFBFBD><EFBFBD>8<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[17].price=19.70;
strcpy( book[17].locate, "<EFBFBD><EFBFBD>¥302");
book[17].base=50;
strcpy( book[18].title,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҡ<EFBFBD>");
strcpy( book[18].author, "<EFBFBD>޹<EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[18].publice, "<EFBFBD>й<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[18].time, "2017<EFBFBD><EFBFBD>9<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[18].price=22.70;
strcpy( book[18].locate, "<EFBFBD><EFBFBD>¥302");
book[18].base=50;
strcpy( book[19].title,"<EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[19].author, "³Ѹ");
strcpy( book[19].publice, "<EFBFBD><EFBFBD><EFBFBD>ս<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[19].time, "2015<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[19].price=15.40;
strcpy( book[19].locate, "<EFBFBD><EFBFBD>¥302");
book[19].base=50;
strcpy( book[20].title,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>š<EFBFBD>");
strcpy( book[20].author, "<EFBFBD>");
strcpy( book[20].publice, "<EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
strcpy( book[20].time, "2012<EFBFBD><EFBFBD>8<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>");
book[20].price=15.30;
strcpy( book[20].locate, "<EFBFBD><EFBFBD>¥302");
book[20].base=50;
struct user {
char user_name[100];
char user_pass[100];
} stu[2]= {{"xiaocong001","123456"},{"zhuzhu002","123456"}};
int num1=0;
int num2=0;
printf("***************<2A><>ӭ<EFBFBD><D3AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҹ<EFBFBD><D2B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E5B5A5><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>***************\n"); //<2F><>¼ϵͳ
while(1) {
printf("\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
char u[100];
scanf("%s",u);
if(strcmp(stu[0].user_name,u)==0||strcmp(stu[1].user_name,u)==0) {
break;
}
else {
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
num1++;
if(num1==3) {
printf("\n\t\t<EFBFBD>ܱ<EFBFBD>Ǹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><EFBFBD>Ȩ<EFBFBD>޽<EFBFBD><EFBFBD><EFBFBD>ϵͳ<EFBFBD><EFBFBD>\n");
exit(0);
}
}
}
system("cls");
printf("***************<2A><>ӭ<EFBFBD><D3AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҹ<EFBFBD><D2B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E5B5A5><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>***************\n");
printf("\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
while(1) {
char p[100];
scanf("%s",p);
if(strcmp(stu[0].user_pass,p)==0) {
printf(" <20><>¼<EFBFBD>ɹ<EFBFBD>\n");
break;
} else {
if(num2!=2) {
printf("\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
}
num2++;
if(num2==3) {
printf("\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>󳬹<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Σ<EFBFBD>ϵͳ3<EFBFBD><EFBFBD><EFBFBD>󽫹ر<EFBFBD>\n");
Sleep(1000);
printf("3\n");
Sleep(1000);
printf("2\n");
Sleep(1000);
printf("1\n");
exit(0);
}
}
}
system("cls"); //ˢ<><CBA2>
system("color e5");
char t[20],a[20];
int i;
float sum[100]= {0};
while(1) {
int n=0;
int j=0;
printf("\t\t***************************************\n");
printf("\t\t*<2A><><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD><CBB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'*'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD>*\n");
printf("\t\t*eg:'* *' *\n");
printf("\t\t***************************************\n\n\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD>Ѱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n") ;
scanf("%s%s",&t,&a);
if((*t=='*')||(*a=='*')) {
printf("\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>ϵͳ<EFBFBD>ɹ<EFBFBD>\n");
break;
}
for(i=0; i<21; i++) {
if((strcmp(t,book[i].title)==0)||strcmp(t,book[i].author)==0) {
if((strcmp(a,book[i].author)==0)||strcmp(a,book[i].title)==0) {
printf("\t|-----------------------------------\n");
printf("\t|***********<2A><>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><E5B5A5>***********|\n");
printf("\t|<7C><><EFBFBD><EFBFBD> :%20s |\n", book[i].title);
printf("\t|<7C><><EFBFBD><EFBFBD> :%20s |\n", book[i].author);
printf("\t|<7C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> :%20s |\n", book[i].publice);
printf("\t|<7C><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1> :%20s |\n", book[i].time);
printf("\t|<7C>۸<EFBFBD> :%20.2f |\n",book[i].price);
printf("\t<><CEBB> :%20s |\n",book[i].locate);
printf("\t|<7C><><EFBFBD><EFBFBD> :%20d |\n",book[i].base);
printf("\t-----------------------------------|\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
int num;
int m=1;
while(m==1) {
scanf("%d",&num);
if(num<0) {
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD>");
} else if(num<=book[i].base) {
book[i].base=book[i].base - num;
printf("\n\n\t\t<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>%d <20><> %s\n",num,book[i].title);
sum[i]=num*book[i].price;
printf("\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD><EFBFBD><EFBFBD>Ľ<EFBFBD><EFBFBD><EFBFBD>:%.2f\n\n\n",sum[i]);
m=0;
} else {
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><EFBFBD>Χ<EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
}
}
n=1;
}
}
}
if(n==0) {
printf("\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߡ<EFBFBD>\n");
}
printf("\t\t*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9BCAE>\t*\n\t\t*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>˳<EFBFBD><CBB3><EFBFBD>\t*\n");
printf("\n");
}
float s=0.0;
for(i=0; i<21; i++)
s+=sum[i];
printf("\t\t\t\t<EFBFBD>ܹ<EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%.2f\n",s);
Sleep(3000);
system("cls");
system("color f6");
Sleep(1000);
printf("\t\t\t\t<EFBFBD><EFBFBD>ӭ<EFBFBD>´ι<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҹ<EFBFBD><EFBFBD><EFBFBD>\n");
Sleep(1000);
printf("\t\t\t\t<EFBFBD><EFBFBD><EFBFBD>и㲻<EFBFBD><EFBFBD>û<EFBFBD>лƽ<EFBFBD><EFBFBD><EFBFBD> ǧ<><C7A7><EFBFBD><EFBFBD>\n");
Sleep(1000);
printf("\t\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
Sleep(1000);
printf("\t\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>");
return 0;
}