commit 5f83d108584e4f1eec5aafc2c0507e071b638ecc Author: 1185759433@qq.com <1185759433@qq.com> Date: Fri Jan 11 19:04:34 2019 +0800 1 commit diff --git a/头文件.h b/头文件.h new file mode 100644 index 0000000..3e4f4a0 --- /dev/null +++ b/头文件.h @@ -0,0 +1,57 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include //ÔÚʹÓÃÖÐÒªÓõ½µÄ×Ö·û´®¶¼°üº¬ÔÚ±¾ÎļþÖÐ +#include //exit()º¯Êý¾Í°üº¬ÔÚ´ËÎļþÖÐ +#include +#define isPrime(year) ((year%4==0&&year%100!=0)||(year%400==0)) + +int z[100]={0}; +int s,j; +FILE *fp; + + +void check_in(); //ÉùÃ÷µÇ¼ÇÈëסº¯Êý +void availability(); //ÉùÃ÷²éѯ·¿¼äÈëסÇé¿öº¯Êý +void fate_days(); //ÉùÃ÷²éѯÈÕÓÃסË޵ķÑÓà +void fate_hours(); //ÉùÃ÷²éѯʱÓÃסË޵ķÑÓà +void check_out_days(); //ÉùÃ÷½áÈÕÓÃסË޵ķÑÓà +void check_out_hours(); //ÉùÃ÷½áʱÓÃסË޵ķÑÓà +void modificate(); //ÉùÃ÷ÐÞ¸ÄÐÅÏ¢º¯Êý +void modificate_person(); //ÉùÃ÷ÐÞ¸ÄÐÅÏ¢º¯ÊýÖеÄÐ޸Ŀͻ§ÐÅÏ¢ +void modificate_accommodation(); //ÉùÃ÷ÐÞ¸ÄÐÅÏ¢º¯ÊýÖеÄÐÞ¸ÄסËÞÐÅÏ¢ +void save(); //ÉùÃ÷±£´æº¯Êý +void menu(); //ÉùÃ÷²Ëµ¥º¯Êý +void days(); //ÉùÃ÷ÈëסÀàÐÍΪÌìÊýº¯Êý +void hours(); //ÉùÃ÷ÈëסÀàÐÍΪСʱº¯Êý +int date1Diff(); //ÉùÃ÷¼ÆËãÌìÊý²îº¯Êý + + struct date1 +{ + int year; + int month; + int day; +}; + + +struct Date +{int year; +int month; +int day; +int hour; +int minute; +}date; //¶¨ÒåÈÕÆÚ±äÁ¿ + +struct room +{ +int room_ID; //·¿¼äºÅ +int kind; //·¿¼äÖÖÀࣨ°üº¬µ¥È˼䣬˫È˼䣬ÈýÈ˼䣬VIPÌ×·¿£© +char name[20]; //¿Í»§ÐÕÃû +int age; //¿Í»§ÄêÁä +int sex; //¿Í»§ÐÔ±ð +char ID_card[20]; //¿Í»§Éí·ÝÖ¤ºÅ +int day_money; //°´ÈÕÊշѼ۸ñ +int hour_money; //°´Ð¡Ê±ÊշѼ۸ñ +int count; //·¿¼äÊýÁ¿ +struct Date date; +}room[100]; +