java酒店管理毕业设计源代码共101页.docx

上传人:b****2 文档编号:71684 上传时间:2023-04-28 格式:DOCX 页数:67 大小:31.26KB
下载 相关 举报
java酒店管理毕业设计源代码共101页.docx_第1页
第1页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第2页
第2页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第3页
第3页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第4页
第4页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第5页
第5页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第6页
第6页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第7页
第7页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第8页
第8页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第9页
第9页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第10页
第10页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第11页
第11页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第12页
第12页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第13页
第13页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第14页
第14页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第15页
第15页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第16页
第16页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第17页
第17页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第18页
第18页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第19页
第19页 / 共67页
java酒店管理毕业设计源代码共101页.docx_第20页
第20页 / 共67页
亲,该文档总共67页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

java酒店管理毕业设计源代码共101页.docx

《java酒店管理毕业设计源代码共101页.docx》由会员分享,可在线阅读,更多相关《java酒店管理毕业设计源代码共101页.docx(67页珍藏版)》请在冰点文库上搜索。

java酒店管理毕业设计源代码共101页.docx

java酒店管理毕业设计源代码共101页

酒店管理系统C++源代码----仅供参考学习,切勿用于任何商业用途

#include

#include

#include

#include

#include

#include

#include

#include

#include

//*****************************************************************

//*****************************************************************

//    CLASSNAME  :

MENU

//    DETAILS

一需求分析

     

(1)顾客

         1查看房间信息(空房号,等级,床位数)

     2入住(房号,姓名,身份证)

     3退房(结账)

   

(2)管理员

        1查看房间信息(空房号,房间状态,等级,床位数)

        2入住(房号,改变房间状态,登记人)

        3退房(结账,登记人)

   

   

二实体

     1房间:

     号码c_room

     等级c_dank

     床数c_nbed

     状态c_statds

     价格c_rate

  

     2顾客:

         身份证id

         人数     m

        要求等级r

        入住房间room

  //这个时候不知道是设计类还是功能模块

三程序流程

1.管理员登陆

2.选择功能

1.登记入住voidcheck_in();

2.退房    voidcheck_out();

3.定房    voidbook();

4.订房

3.管理员退出

四功能模块

  1顾客模块

      1)登记入住

        1输入人数m和房间等级要求r

         2按r搜索空房再按m搜索

         3如果有符合条件的显示

         4如果没有则给出优化方案

         5选择房间

         6给出每个人每天要付的费用dayrent

         7登记个人信息

         8改变房间状态

     2)退房

         1计算每人应付费用和总共费用

         2改变房间状态

      3)订房

         1输入人数m房间等级要求r

         2按r搜索空房再按m搜索

         3如果有符合条件的显示

         4如果没有则给出优化方案

         5选择房间

  2管理员模块

     1)登录系统

              1输入用户名和密码

            2检验密码

              3通过/重新输入

     2)登记入住(同上)

      3)退房(同上)

     4)订房(同上)

     5)房间信息管理

                 1显示空房及对应的等级空房

                 2显示已订房号码及开始入住日期

  

      :

ITCONTROLSOVERALLTHEFUNCTIONS

//*****************************************************************

classmenu

{

    public:

              voidmain_menu(void);

              voidstartup(void);

              voidbox(void);

              voidline_hor(int,int,int,char);

              voidline_ver(int,int,int,char);

};

//*****************************************************************

//    CLASSNAME  :

HKEEP

//    DETAILS    :

ITCONTROLSOVERALLFUNCTIONS

//                  RELATEDTOHKEEP

//*****************************************************************

classhkeep

{

    public:

              hkeep(void);

              ~hkeep(void);

              voidadd(void);

              voidmodify(void);

              voiddeletion(void);

              voiddisplay_list(void);

    private:

              voiddisplay_record(int);

              intfound_record(int);

              voiddelete_record(int);

              voidmodify_record(int);

              intrecordno(int);

              intlast_code(void);

              intcode;

              charname[20],roomno[10],order[99];

};

//*****************************************************************

//    CLASSNAME  :

MENU

//    FUNCTIONNAME:

LINE_HOR

//    DETAILS    :

ITACCEPTSTHEROWSANDCOLUMNSAND

//                    DRAWSHORIZONTALLINES

//*****************************************************************

voidmenu:

:

line_hor(intcolumn1,intcolumn2,introw,charc)

{

    for(column1;column1<=column2;column1++)

    {

      //gotoxy(column1,row);

      cout<

    }

}

//*****************************************************************

//    CLASSNAME  :

MENU

//    FUNCTIONNAME:

LINE_VER

//    DETAILS    :

ITACCEPTSROWSANDCOLUMNSAND

//              DRAWSTHEVERTICALLINE

//*****************************************************************

voidmenu:

:

line_ver(introw1,introw2,intcolumn,charc)

{

    for(row1;row1<=row2;row1++)

    {

      gotoxy(column,row1);

      cout<

    }

}

//*****************************************************************

//    CLASSNAME  :

  MENU

//    FUNCTIONNAME:

STARTUP

//    DETAILS    :

ITCREATESTHESTARTINGSCREEN

//*****************************************************************

voidmenu:

:

startup(void)

{

//    clrscr();

    inti,j,s;

    chara[]="  H*O*T*E*L";

    charb[]="M*A*N*A*G*E*M*E*N*T";

    for(i=0;i<=79;i++)

    line_ver(1,25,i,179);

//    gotoxy(1,11);clreol();

    gotoxy(1,13);clreol();

    j=63;

    s=100;

    for(i=1;i<=43;i++)

    {

      sound(s);

      s=s+20;

      delay(50);

      gotoxy(1,12);

      clreol();

      gotoxy(i,12);

      cout<

      gotoxy(j,12);

      cout<

      j--;

      gotoxy(1,1);

    }

//    nosound();

    delay(100);

    charch=219;

    s=500;

    for(i=0;i<=79;i++)

    {

      sound(s);

      s=s+10;

      gotoxy(i,10);

      cout<

      delay(5);

    }

    nosound();

    delay(200);

    ch=219;

    s=1290;

    for(i=79;i>=1;i--)

    {

      sound(s);

      s=s-10;

      gotoxy(i,14);

      cout<

      delay(5);

    }

    nosound();

    delay(1000);

    clrscr();

    cout<<"\n\n\n\n\n\n\n\n\n\n\n\t\t\t\tProjectmadeby:

";

    charjklf[]="ABCDEF";

    cout<<"\n\n\t\t\t\t\t\t";

    for(intu=0;u<7;u++)

      {cout<

        delay(80);

      }

    charjklf1[]="GHIJK:

";

    cout<<"\n\t\t\t\t\t\t";

    for(intv=0;v<7;v++)

      {cout<

        delay(80);

      }

    charjklf2[]="";

    cout<<"\n\t\t\t\t\t\t";

    for(intw=0;w<5;w++)

      {cout<

        delay(80);

      }

    delay(1100);

    }

//*****************************************************************

//    CLASSNAME    :

MENU

//    FUNCTIONNAME  :

BOX

//    DETAILS      :

ITCREATSBOXFORTHEMENU

//*****************************************************************

voidmenu:

:

box(void)

{

    //  line_hor(2,39,1,219);

    line_hor(2,39,24,219);

    line_ver(1,24,2,219);

    line_ver(1,24,39,219);

}

//*****************************************************************

//    CLASSNAME  :

MENU

//    FUNCTIONNAME:

MAIN_MENU

//    DETAILS    :

ITCREATESMENUANDCONTROLSOTHER

//                  FUNCTION

//*****************************************************************

voidmenu:

:

main_menu(void)

{

    charch;

    while

(1)

    {

      clrscr();

      textmode(C40);

      clrscr();

      box();

      gotoxy(12,5);

      cout<<"  HouseKeeping";

      gotoxy(12,6);

      cout<<"-----------------";

      gotoxy(12,10);

      cout<<"1:

StoreCustomerOrder";

      gotoxy(12,11);

      cout<<"2:

DisplaycustomerOrder";

      gotoxy(12,12);

      cout<<"3:

DeleteOrder";

      gotoxy(12,13);

      cout<<"4:

ModifyOrder";

      gotoxy(12,14);

      cout<<"0:

Quit";

      gotoxy(11,18);

      cout<<"Enteryourchoice";

      ch=getch();

      textmode(C80);

      clrscr();

      if(ch=='1')

      {

          hkeepd;

          d.add();

      }

      else

      if(ch=='2')

      {

          hkeepd;

          d.display_list();

      }

      else

      if(ch=='3')

      {

          hkeepd;

          d.deletion();

      }

      else

      if(ch=='4')

      {

          hkeepd;

          d.modify();

      }

      else

      if(ch=='0')

          break;

    }

}

//*****************************************************************

//    CLASSNAME  :

HKEEP

//    FUNCTIONNAME:

HKEEP(CONSTRUCTOR)

//    DETAILS    :

ITISACONSTRUCTORFUNCTION,GIVING

//              DEFAULTVALUES

//*****************************************************************

hkeep:

:

hkeep(void)

{

    code=0;

    name[0]='\0';

    roomno[0]='\0';

    order[0]='\0';

}

//*****************************************************************

//    CLASSNAME  :

HKEEP

//    FUNCTIONNAME:

~HKEEP(DESTRUCTOR)

//    DETAILS        :

ITISADESTRUCTORFUNCTION

//*****************************************************************

hkeep:

:

~hkeep(void)

{

}

//*****************************************************************

//    CLASSNAME  :

HKEEP

//    FUNCTIONNAME:

DISPLAY_LIST

//    DETAILS    :

ITDISPLAYSLISTOFTHEPERSON'S

//          RECORDS

//*****************************************************************

voidhkeep:

:

display_list(void)

{

    clrscr();

    menum;

    char*t_name,*t1_name=NULL;

    gotoxy(3,5);

    cout<<"Enterthecharacter(s)forselectivelist";

    gotoxy(3,6);

    cout<<"orpressforwholelistor'0'toexit:

";

    gets(t_name);

    if(t_name[0]=='0')

      return;

    intlen=strlen(t_name);

    clrscr();

    fstreamfile;

    file.open("HKFILE.IMR",ios:

:

binary|ios:

:

in);

    file.seekg(0,ios:

:

beg);

    introw=4;

    intfound=0;

    intpageno=1;

    intflag=1;

    charch;

    gotoxy(1,2);

    cout<<"OrderSerialNo.";

    m.line_hor(1,79,3,196);

    m.line_hor(1,79,24,196);

    while(file.read((char*)this,sizeof(hkeep)))

    {

      flag=1;

      for(inti=0;i

          t1_name=name;

      t1_name[len]='\0';

      if(strcmpi(t_name,t1_name)==0)

      {

          delay(200);

          found=1;

          gotoxy(1,row);

          cout<

          gotoxy(7,row);

 

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 人文社科

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2