|
|
|
|
#define _CRT_SECURE_NO_WARNINGS
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <string.h> //<2F><>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD>Ҫ<EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڱ<EFBFBD><DAB1>ļ<EFBFBD><C4BC><EFBFBD>
|
|
|
|
|
#include <stdlib.h> //exit()<29><><EFBFBD><EFBFBD><EFBFBD>Ͱ<EFBFBD><CDB0><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4>ļ<EFBFBD><C4BC><EFBFBD>
|
|
|
|
|
#include <conio.h>
|
|
|
|
|
#define isPrime(year) ((year%4==0&&year%100!=0)||(year%400==0))
|
|
|
|
|
|
|
|
|
|
int z[100]={0};
|
|
|
|
|
int s,j;
|
|
|
|
|
FILE *fp;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void check_in(); //<2F><><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD><C7BC><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD>
|
|
|
|
|
void availability(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
void fate_days(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ס<EFBFBD>ķ<DEB5><C4B7><EFBFBD>
|
|
|
|
|
void fate_hours(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯʱ<D1AF><CAB1>ס<EFBFBD>ķ<DEB5><C4B7><EFBFBD>
|
|
|
|
|
void check_out_days(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ס<EFBFBD>ķ<DEB5><C4B7><EFBFBD>
|
|
|
|
|
void check_out_hours(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>ס<EFBFBD>ķ<DEB5><C4B7><EFBFBD>
|
|
|
|
|
void modificate(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
|
|
|
|
|
void modificate_person(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD><D0B5>Ŀͻ<C4BF><CDBB><EFBFBD>Ϣ
|
|
|
|
|
void modificate_accommodation(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD><D0B5><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
void save(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>溯<EFBFBD><E6BAAF>
|
|
|
|
|
void menu(); //<2F><><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
void days(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
void hours(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD>ΪСʱ<D0A1><CAB1><EFBFBD><EFBFBD>
|
|
|
|
|
int date1Diff(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EEBAAF>
|
|
|
|
|
|
|
|
|
|
struct date1
|
|
|
|
|
{
|
|
|
|
|
int year;
|
|
|
|
|
int month;
|
|
|
|
|
int day;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct Date
|
|
|
|
|
{int year;
|
|
|
|
|
int month;
|
|
|
|
|
int day;
|
|
|
|
|
int hour;
|
|
|
|
|
int minute;
|
|
|
|
|
}date; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڱ<EFBFBD><DAB1><EFBFBD>
|
|
|
|
|
|
|
|
|
|
struct room
|
|
|
|
|
{
|
|
|
|
|
int room_ID; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
int kind; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ࣨ<EFBFBD><E0A3A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˼䣬˫<E4A3AC>˼䣬<CBBC><E4A3AC><EFBFBD>˼䣬VIP<49><EFBFBD><D7B7><EFBFBD>
|
|
|
|
|
char name[20]; //<2F>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
int age; //<2F>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
int sex; //<2F>ͻ<EFBFBD><CDBB>Ա<EFBFBD>
|
|
|
|
|
char ID_card[20]; //<2F>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><D6A4>
|
|
|
|
|
int day_money; //<2F><><EFBFBD><EFBFBD><EFBFBD>շѼ۸<D1BC>
|
|
|
|
|
int hour_money; //<2F><>Сʱ<D0A1>շѼ۸<D1BC>
|
|
|
|
|
int count; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
struct Date date;
|
|
|
|
|
}room[100];
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
printf("\n");
|
|
|
|
|
menu(); //<2F><><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>
|
|
|
|
|
save();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void menu()
|
|
|
|
|
{
|
|
|
|
|
int n;
|
|
|
|
|
do
|
|
|
|
|
{
|
|
|
|
|
printf("\n");
|
|
|
|
|
printf(" \t ******************<2A><>ӭ<EFBFBD><D3AD>ס<EFBFBD>Ƶ<EFBFBD>***************** \n");
|
|
|
|
|
printf("\n *********************<2A>˵<EFBFBD>********************");
|
|
|
|
|
printf("\n******* 1.<2E>Ǽ<EFBFBD><C7BC><EFBFBD>ס \t *******\n");
|
|
|
|
|
printf("******* 2.<2E><>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD> \t *******\n");
|
|
|
|
|
printf("******* 3.<2E><>ѯ<EFBFBD><D1AF>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>) \t *******\n");
|
|
|
|
|
printf("******* 4.<2E><>ѯ<EFBFBD><D1AF>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>(ʱ<><CAB1>) \t *******\n");
|
|
|
|
|
printf("******* 5.<2E><><EFBFBD>˵<EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>) \t *******\n");
|
|
|
|
|
printf("******* 6.<2E><><EFBFBD>˵<EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>(ʱ<><CAB1>) \t *******\n");
|
|
|
|
|
printf("******* 7.<2E>˳<EFBFBD> \t *******");
|
|
|
|
|
printf(" *********************<2A>˵<EFBFBD>********************\n"); //<2F><><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>棬<EFBFBD>ò<EFBFBD><C3B2><EFBFBD>Ա<EFBFBD>ܹ<EFBFBD><DCB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>еIJ<D0B5><C4B2><EFBFBD>
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>0<EFBFBD><EFBFBD><EFBFBD>ز˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>");
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
|
|
|
|
|
scanf("%d",&n);
|
|
|
|
|
while(n<1||n>7)
|
|
|
|
|
{printf(" *********************<2A><><EFBFBD><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");
|
|
|
|
|
scanf("%d",&n);}
|
|
|
|
|
switch(n)
|
|
|
|
|
{
|
|
|
|
|
case 1:check_in();break; //<2F><><EFBFBD>õǼ<C3B5><C7BC><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD>
|
|
|
|
|
case 2:availability();break; //<2F><><EFBFBD>ò<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
case 3:fate_days();break; //<2F><><EFBFBD>ò<EFBFBD>ѯ<EFBFBD><D1AF>ǰ<EFBFBD><C7B0><EFBFBD>÷<EFBFBD><C3B7>ú<EFBFBD><C3BA><EFBFBD>
|
|
|
|
|
case 4:fate_hours();break; //<2F><><EFBFBD>ò<EFBFBD>ѯ<EFBFBD><D1AF>ǰʱ<C7B0>÷<EFBFBD><C3B7>ú<EFBFBD><C3BA><EFBFBD>
|
|
|
|
|
case 5:check_out_days();break; //<2F><><EFBFBD>ý<EFBFBD><C3BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>÷<EFBFBD><C3B7>ú<EFBFBD><C3BA><EFBFBD>
|
|
|
|
|
case 6:check_out_hours();break; //<2F><><EFBFBD>ý<EFBFBD><C3BD>˵<EFBFBD>ǰʱ<C7B0>÷<EFBFBD><C3B7>ú<EFBFBD><C3BA><EFBFBD>
|
|
|
|
|
case 7:exit(0); //<2F>˳<EFBFBD>
|
|
|
|
|
}
|
|
|
|
|
}while(n!=7);
|
|
|
|
|
scanf("%d",&n);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void check_in() // <20>ǼǺ<C7BC><C7BA><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
int op,way,po,i,num;
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>ķ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
scanf("%d", &num); while(num<0||num>100)
|
|
|
|
|
{printf(" *********************<2A><><EFBFBD><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");
|
|
|
|
|
scanf("%d",&num);}
|
|
|
|
|
if(num==0) menu();
|
|
|
|
|
for (i=1;i<=num;++i) {
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ:\n");
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d<><64><EFBFBD>ţ<EFBFBD>(1<>ŵ<EFBFBD>100<30><30>֮<EFBFBD><D6AE>)",i);
|
|
|
|
|
scanf("%d", &j);if(j==0) menu();
|
|
|
|
|
room[j].room_ID = j;
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
|
|
|
|
|
scanf("%d", &room[j].age);if(room[j].age==0) menu();
|
|
|
|
|
while (j<0||j>100)
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
}
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>ס<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD>(1<><31>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD>Ʒѣ<C6B7>2<EFBFBD><32>ʾ<EFBFBD><CABE>Сʱ<D0A1>Ʒ<EFBFBD>)\n\t *****ע<>⣺<EFBFBD><E2A3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>סʱ<D7A1><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϣ<EFBFBD><CFA3><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD>*****");
|
|
|
|
|
scanf("%d", &way);if(way==0) menu();
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD>סʱ<EFBFBD><EFBFBD>Ϊ(<28><>):");
|
|
|
|
|
scanf("%d", &room[j].date.year);if(room[j].date.year==0) menu();
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD>סʱ<EFBFBD><EFBFBD>Ϊ(<28><>):");
|
|
|
|
|
scanf("%d", &room[j].date.month);if(room[j].date.month==0) menu();
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD>סʱ<EFBFBD><EFBFBD>Ϊ(<28><>):");
|
|
|
|
|
scanf("%d", &room[j].date.day);if(room[j].date.day==0) menu();
|
|
|
|
|
if (way == 1)
|
|
|
|
|
{
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ࣺ[1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˼<EFBFBD>(200Ԫ/<2F><>)<29><>2<EFBFBD><32><EFBFBD><EFBFBD>˫<EFBFBD>˼<EFBFBD>(390Ԫ/<2F><>)<29><>3<EFBFBD><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˼<EFBFBD>(475Ԫ/<2F><>)<29><>4<EFBFBD><34><EFBFBD><EFBFBD>VIP<49><EFBFBD>(650Ԫ/<2F><>)]");
|
|
|
|
|
scanf("%d", &op);if(op==0) menu();
|
|
|
|
|
}
|
|
|
|
|
if (way == 2)
|
|
|
|
|
{
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ࣺ[1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˼<EFBFBD>(10Ԫ/Сʱ)<29><>2<EFBFBD><32><EFBFBD><EFBFBD>˫<EFBFBD>˼<EFBFBD>(19Ԫ/Сʱ)<29><>3<EFBFBD><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˼<EFBFBD>(27Ԫ/Сʱ)<29><>4<EFBFBD><34><EFBFBD><EFBFBD>VIP<49><EFBFBD>(45Ԫ/Сʱ)]");
|
|
|
|
|
scanf("%d", &po);if(po==0) menu();
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD>סʱ<EFBFBD><EFBFBD>Ϊ(Сʱ):");
|
|
|
|
|
scanf("%d", &room[j].date.hour);if(room[j].date.hour==0) menu();
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD>סʱ<EFBFBD><EFBFBD>Ϊ(<28><><EFBFBD><EFBFBD>):");
|
|
|
|
|
scanf("%d", &room[j].date.minute);if(room[j].date.minute==0) menu();
|
|
|
|
|
}
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
scanf("%s", &room[j].name);if(room[j].name==0) menu();
|
|
|
|
|
printf("\n<EFBFBD>Ա<EFBFBD>(<28><><EFBFBD>У<EFBFBD>1<EFBFBD><31>ʾ<EFBFBD>У<EFBFBD>2<EFBFBD><32>ʾŮ!):");
|
|
|
|
|
scanf("%d", &room[j].sex);if(room[j].sex==0) menu();
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD>ţ<EFBFBD>");
|
|
|
|
|
scanf("%s", &room[j].ID_card);if(room[j].ID_card==0) menu();
|
|
|
|
|
z[j] = 1; //<2F><><EFBFBD><EFBFBD>ʹ<EFBFBD>õķ<C3B5><C4B7><EFBFBD>Ϊ1
|
|
|
|
|
save();
|
|
|
|
|
}
|
|
|
|
|
menu();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void availability() //<2F><>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ס<EFBFBD><D7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
int g,count=0;
|
|
|
|
|
for(g=0;g<100;g++)
|
|
|
|
|
{
|
|
|
|
|
if(z[g]==0)
|
|
|
|
|
++count;
|
|
|
|
|
else
|
|
|
|
|
if(z[g]==1)
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD>õķ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:%d",g);
|
|
|
|
|
}
|
|
|
|
|
printf("\n\nδʹ<EFBFBD>õķ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:%d",count); //ͨ<><CDA8>ѭ<EFBFBD><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δʹ<CEB4>õķ<C3B5><C4B7><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
printf("\n\n");
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD>ķ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: "); //<2F><>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD>ŵ<EFBFBD><C5B5><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
scanf("%d",&s);
|
|
|
|
|
while(s<0||s>100)
|
|
|
|
|
{printf(" *********************<2A><><EFBFBD><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");
|
|
|
|
|
scanf("%d",&s);}if(s==0) menu();
|
|
|
|
|
if(z[s]==1)
|
|
|
|
|
{printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:%s",room[s].name);
|
|
|
|
|
printf("\n<EFBFBD>Ա<EFBFBD>(<28><><EFBFBD>У<EFBFBD>1<EFBFBD><31>ʾ<EFBFBD>У<EFBFBD>2<EFBFBD><32>ʾŮ):%d",room[s].sex);
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:%d",room[s].age);
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>:%s",room[s].ID_card);
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD>:%d",room[s].date.year);
|
|
|
|
|
printf(" <20><>:%d",room[s].date.month);
|
|
|
|
|
printf(" <20><>:%d",room[s].date.day);
|
|
|
|
|
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:%d",room[s].room_ID);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
printf("<EFBFBD>÷<EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD>!");
|
|
|
|
|
menu();
|
|
|
|
|
save(); //<2F><><EFBFBD>ñ<EFBFBD><C3B1>溯<EFBFBD><E6BAAF>
|
|
|
|
|
}
|
|
|
|
|
|