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.

58 lines
2.0 KiB

6 years ago
#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];