酒店管理消费系统代码-求酒店管理系统(C语言)
微信号
KTV115116
本文目录一览:
- 1、求酒店管理系统(C语言)
- 2、酒店管理系统源代码
- 3、vf 酒店管理信息系统 要有源代码 谢谢 不好意思 我就35分了 只能提供30分 哪位好心人有啊?
- 4、请哪位高手帮我用C语言编一个酒店管理系统软件 ! 急!!!
求酒店管理系统(C语言)
#includestdio.h
#includestdlib.h
#includestring.h
struct customers_node{
char id[18];
int days;
int money;
char roomnumber[3];
struct customers_node *next;
};
struct customers_node * p0,* head;
//#define N 100
struct customers_node * Create_Cust_Doc(); //新建
struct customers_node * InsertDoc(struct customers_node * head,char id[ ]); //插入
struct customers_node * DeleteDoc(struct customers_node * head,char id[ ]); //删除
struct customers_node * searchDoc(struct customers_node * head,char id[ ]); //查询
void Print_Cust_Doc(struct customers_node * head); //调用信息函数
struct customers_node * customers(struct customers_node * p0); //需要为p0分配动态存储空间吗
int main(void)
{
struct customers_node * head;
int choice;
char id[18];
do{
printf("本系统功能:\n");
printf("1.Create(新建) 2.search(查询) 3.Insert(添加) 4.Delete(删除) 5.print 0:Exit(退出)\n");
printf("请选择:");
scanf("%d",choice);
switch(choice){
case 1:
head=Create_Cust_Doc();
break;
case 2:
printf(" 请您输入您的身份证号码:\n");
scanf("%s",id);
head=searchDoc(head,id);
break;
case 3:
printf(" 请您输入您的身份证号码:\n");
scanf("%s",id);
head=InsertDoc(head,id);
break;
case 4:
printf(" 请您输入您的身份证号码:\n");
scanf("%s",id);
head=DeleteDoc(head,id);
break;
case 5:
Print_Cust_Doc(head);
break;
case 0:
break;
}
}while(choice!=0);
return 0;
}
struct customers_node * customers(struct customers_node * p0)
{
struct customers_node * p;
int days,money,choice,z;
char id[18];
char roomnumber[3];
printf(" 请您输入您的身份证号码:\n");
scanf("%s",id);
printf(" 您已登陆成功!\n");
printf(" 请您选择房间种类:\n");
printf(" 1.单人间/夜150元\n 2.双人间/夜200元\n 3.标准间/夜300元\n 4.总统套房/夜600元\n");
scanf("%d",choice);
switch(choice) {
case 1:printf(" 请输入预定天数\n");
scanf("%d",days);
money=days*150;
printf(" 请预交款为%d元\n",money);
printf(" 1.确定(预定成功) 2.返回(是否重新预定)\n");
scanf("%d",z);
if(z==1){
printf(" 您已预定成功 ★ 房间号码为: ");
scanf("%s",roomnumber);
}break;
case 2:printf(" 请输入预定天数\n");
scanf("%d",days);
money=days*200;
printf(" 请预交款为%d元\n",money);
printf(" 1.确定(预定成功) 2.返回(是否重新预定)\n");
scanf("%d",z);
if(z==1){
printf(" 您已预定成功★房间号码为: ");
scanf("%s",roomnumber);
}break;
case 3:printf(" 请输入预定天数: ");
scanf("%d",days);
money=days*300;
printf(" 请预交款为%d元\n",money);
printf(" 1.确定(预定成功) 2.返回(是否重新预定)\n");
scanf("%d",z);
if(z==1){
printf(" 您已预定成功 ★ 房间号码为: ");
scanf("%s",roomnumber);
} break;
case 4:printf(" 请输入预定天数\n");
scanf("%d",days);
money=days*600;
printf(" 请预交款为%d元\n",money);
printf(" 1.确定(预定成功) 2.返回(是否重新预定)\n");
scanf(" %d",z);
if(z==1){
printf(" 您已预定成功★房间号码为: ");
scanf("%s",roomnumber);
}break;
default :printf(" 您的输入有错,请您重试,谢谢。\n");
break;
p=(struct customers_node *)malloc(sizeof(struct customers_node)); //是否能用指针完成结构元素的传送
strcpy(p-id,id);
strcpy(p-roomnumber,roomnumber);
p-days=days;
p-money=money;
return p;
}
struct customers_node * Create_Cust_Doc() //新建
{
struct customers_node * head,* p;
int size=sizeof(struct customers_node);
p=(struct customers_node *)malloc(size);
head-next = NULL;
customers(* p0); //调用函数
//p=p0;
head-next=p;
return head;
}
struct customers_node * InsertDoc(struct customers_node * head);
{
struct customers_node *q,*temp;
q=(struct customers_node *)malloc(sizeof(struct customers_node));
customers(p0);
temp=p0; //未解决元素的插入
q=head-next;
if(head-next==NULL){
q=temp;
q-next=NULL;
}
while(q-next) q=q-next;
q-next=temp;
return head;
}
struct customers_node * searchDoc(struct customers_node * head,char id) //是否只用id能返回结构中的所有元素
{
struct customers_node * p=head-next;
p=head-next;
if(head-next==null)
printf("无人入住");
else{
while(strcmp(id,p-id)!=0) //如何只用id表示结点(结构)中的数据部分 p=p-next;
p=p-next;
}
return p;
}
struct customers_node * DeleteDoc(struct customers_node * head,char id)
{
struct customers_node * p,* q;
p=head-next;
q=p-next;
if(p==null)
return null;
while(p!=null){
if(strcmp(id,p-id)==0){
q=p;
free(p);
}
p=p-next;
q=p-next;
}
return head;
}
void Print_Cust_Doc(struct customers_node * head)
{
struct customers_node * q;
if(head-next==null){
printf("\n 没有记录\n");
return ;
}
printf("入住客户记录是:\n");
for(q=head-next;q;q=q-next){
printf(" 身份证号码:%s\t",q-id);
printf(" 入住天数:%d\t",q-days);
printf(" 预交款:%d\t",q-money);
printf(" 房间号:%s\n",q-roomnumber);
}
}
酒店管理系统源代码
1、屏幕上出现一个界面,让操作员能够方便的选择所需要进行的操作,如不同级别房间价格的查询、 修改、删除等 。 2、对不同标准的房间实施不同的收费标准,也可以按天收费或按小时收费,可根据顾客需要在登记的入住的时候进行选择。 3、月底进行结算,实收多少, 应收多少。 4、操作人员分类: 管理员:职能是管理酒店设施,提供密码管理 前台服务员:登记用户信息,提供密码管理 客户:查询酒店配套信息
vf 酒店管理信息系统 要有源代码 谢谢 不好意思 我就35分了 只能提供30分 哪位好心人有啊?
源码目录结构图 该[源码目录树]加载中酒店管理消费系统代码,请稍候...
ConsumeManage
ConsumeForm.aspx[4K]
ConsumeForm.aspx.cs[5K]
ConsumePrint.aspx[1K]
ConsumePrint.aspx.cs[4K]
EatingForm.aspx[4K]
EatingForm.aspx.cs[4K]
EatingPrint.aspx[1K]
EatingPrint.aspx.cs[4K]
TelephoneForm.aspx[4K]
TelephoneForm.aspx.cs[4K]
TelephonePrint.aspx[1K]
TelephonePrint.aspx.cs[4K]
MySQL
MyHotelDB数据库.sql[4K]
商品分类查询视图.sql[7K]
客房入住单数据表.sql[2K]
客房入住报表视图.sql[7K]
客房结账单数据表.sql[2K]
客房预约单数据表.sql[2K]
店内消费报表视图.sql[7K]
操作用户数据表.sql[4K]
旅客话费报表视图.sql[7K]
旅客餐费报表视图.sql[7K]
消费入账数据表.sql[2K]
消费商品数据表.sql[1K]
结账汇总报表视图.sql[6K]
话费入账数据表.sql[2K]
酒店信息数据表.sql[1K]
酒店房间数据表.sql[1K]
餐费入账数据表.sql[2K]
QueryManage
QueryConsumeForm.aspx[3K]
QueryConsumeForm.aspx.cs[2K]
QueryConsumePrint.aspx[1K]
QueryConsumePrint.aspx.cs[2K]
QueryDepositForm.aspx[2K]
QueryDepositForm.aspx.cs[6K]
QueryDepositPrint.aspx[1K]
QueryDepositPrint.aspx.cs[1K]
QueryGuestForm.aspx[10K]
QueryGuestForm.aspx.cs[2K]
QuerySumForm.aspx[2K]
QuerySumForm.aspx.cs[2K]
QuerySumPrint.aspx[1K]
QuerySumPrint.aspx.cs[2K]
RoomStatusForm.aspx[4K]
RoomStatusForm.aspx.cs[1K]
ReportManage
ReportCheckoutForm.aspx[4K]
ReportCheckoutForm.aspx.cs[2K]
ReportCheckoutPrint.aspx[1K]
ReportCheckoutPrint.aspx.cs[1K]
ReportConsumeForm.aspx[3K]
ReportConsumeForm.aspx.cs[2K]
ReportConsumePrint.aspx[1K]
ReportConsumePrint.aspx.cs[1K]
ReportEatingForm.aspx[3K]
ReportEatingForm.aspx.cs[2K]
ReportEatingPrint.aspx[1K]
ReportEatingPrint.aspx.cs[1K]
ReportRegisterForm.aspx[4K]
ReportRegisterForm.aspx.cs[2K]
ReportRegisterPrint.aspx[1K]
ReportRegisterPrint.aspx.cs[1K]
ReportTelephoneForm.aspx[3K]
ReportTelephoneForm.aspx.cs[2K]
ReportTelephonePrint.aspx[1K]
ReportTelephonePrint.aspx.cs[1K]
RoomManage
BookForm.aspx[9K]
BookForm.aspx.cs[4K]
BookPrint.aspx[4K]
BookPrint.aspx.cs[1K]
ChangeForm.aspx[7K]
ChangeForm.aspx.cs[2K]
CheckOutForm.aspx[5K]
CheckOutForm.aspx.cs[11K]
CheckOutPrint.aspx[7K]
CheckOutPrint.aspx.cs[1K]
DepositForm.aspx[5K]
DepositForm.aspx.cs[7K]
DepositPrint.aspx[6K]
DepositPrint.aspx.cs[1K]
FromBookToRegisterForm.aspx[10K]
FromBookToRegisterForm.aspx.cs[7K]
PrintForm.aspx[6K]
PrintForm.aspx.cs[8K]
PrintPrint.aspx[7K]
PrintPrint.aspx.cs[1K]
RegisterForm.aspx[11K]
RegisterForm.aspx.cs[7K]
RegisterPrint.aspx[5K]
RegisterPrint.aspx.cs[2K]
SystemManage
AllErrorHelp.aspx[2K]
AllErrorHelp.aspx.cs[530B]
CompanyForm.aspx[7K]
CompanyForm.aspx.cs[1K]
GoodsForm.aspx[6K]
GoodsForm.aspx.cs[1K]
Login.aspx[5K]
Login.aspx.cs[5K]
Logout.aspx[1K]
Logout.aspx.cs[920B]
OperatorForm.aspx[26K]
OperatorForm.aspx.cs[4K]
PasswordRecovery.aspx[10K]
PasswordRecovery.aspx.cs[538B]
RegisterUser.aspx[10K]
RegisterUser.aspx.cs[536B]
RoomForm.aspx[7K]
RoomForm.aspx.cs[2K]
UserInfo.aspx[4K]
UserInfo.aspx.cs[911B]
UserPassword.aspx[8K]
UserPassword.aspx.cs[530B]
51aspx源码必读.txt[2K]
Default.aspx[447B]
Default.aspx.cs[1K]
MasterPage.master[4K]
MasterPage.master.cs[2K]
web.config[945B]
源码简介扬子江酒店管理信息系统源码
功能模块有:
客房管理 消费管理 查询管理 报表管理 系统管理
旅客入住登记 旅客换房登记 旅客结账退房 旅客预订登记
预定旅客入住 旅客补交押金 打印旅客账单 旅客餐费登记 旅客话费登记
其酒店管理消费系统代码他消费登记 查询旅客信息 查询客房信息 查询商品消耗 查询消耗总量 查询旅客押金
客房入住报表 餐饮消费报表
其酒店管理消费系统代码他消费报表 电话消费报表 旅客结账报表
登录管理系统 退出管理系统 新建操作用户 修改用户信息 修改用户密码
查询用户密码 分配用户权限 酒店信息设置 酒店房间设置 酒
请哪位高手帮我用C语言编一个酒店管理系统软件 ! 急!!!
#define NULL 0
#define LEN sizeof(struct customer)
#include "string.h"
struct customer
{
int num;
char name[20];
long date;
struct customer *next;
}cus;
struct customer *creat(void) /*建立一个链表*/
{
struct customer *head,*p1,*p2;
int n=0;
p1=(struct customer *)malloc(LEN);
p2=(struct customer *)malloc(LEN);
printf("请输入客户的信息:\n");
printf("\n房间:");
scanf("%d",p1-num);
printf("\n");
printf("姓名:");
scanf("%s",p1-name);
printf("\n");
printf("入住时间:");
scanf("%ld",p1-date);
printf("\n");
head=NULL;
while(p1-num!=0)
{
n++;
if(n==1)
head=p1;
else
p2-next=p1;
p2=p1;
p1=(struct customer *)malloc(LEN);
printf("请输入客户的信息:\n");
printf("\n房间:");
scanf("%d",p1-num);
printf("\n");
printf("姓名:");
scanf("%s",p1-name);
printf("\n");
printf("入住时间:");
scanf("%ld",p1-date);
printf("\n");
}
p2-next=NULL;
return(head);
}
struct customer *insert(struct customer *head,struct customer *consumer) /*登记新入住的客户的信息*/
{
struct customer *p1,*p2;
p1=head;
p2=consumer;
if(p1-next!=NULL)
p1=p1-next;
if(p1-next==NULL)
{
p1-next=p2;
p2-next=NULL;
}
return(head);
}
struct customer *del(struct customer *head,int num) /*显示退房客户的信息*/
{
struct customer *p1,*p2;
if(head==NULL)
{
printf("没有客户的信息\n");
return(head);
}
p1=head;
while(num!=p1-nump1-next!=NULL)
{
p2=p1;p1=p1-next;
}
if(num==p1-num)
{
if(p1==head)
head=p1-next;
else
p2-next=p1-next;
printf("退房客户的信息:\n");
printf("客房:%d\n",p1-num);
printf("姓名:%s\n",p1-name);
printf("入住时间:%ld\n",p1-date);
}
else
printf("没有该客户的信息\n");
return(head);
}
struct customer *search(struct customer *head,char c_name[]) /*查询客户信息*/
{
struct customer *p;
p=head;
while(strcmp(p-name,c_name)p-next!=NULL)
p=p-next;
if(p-name==c_name)
{
printf("该客户的信息为:\n");
printf("房间:%d\n姓名:%S\n入住时间:%ld",p-num,p-name,p-date);
}
if(p-name!=c_namep-next==NULL)
printf("没有该客户的信息!\n");
}
void print(struct customer *head) /*打印出现有客户的信息*/
{
struct customer *p;
printf("\n现有客户信息为:\n");
p=head;
if(head!=NULL)
do
{
printf("客房:%d\n",p-num);
printf("姓名:%s\n",p-name);
printf("入住时间:%ld\n",p-date);
p=p-next;
}while(p!=NULL);
}
main()
{
struct customer *head,*p;
int m,number;
char c_name[20];
printf("\n");
printf(" ******************************\n");
printf(" 欢迎进入旅游信息管理系统\n");
printf(" ******************************\n");
printf(" ******************************\n\n");
printf(" 1:建库\n");
printf(" 2:登记\n");
printf(" 3:退房\n");
printf(" 4:查询\n");
printf(" ******************************\n\n");
printf("请执行操作:\n");
scanf("%d",m);
if(m==1)
head=creat();
else
if(m==2)
{
printf("请输入要登记得客户的信息:");
p=(struct customer *)malloc(LEN);
scanf("%d %s %ld",p-num,p-name,p-date);
head=insert(head,p);
print(head);
}
else
if(m==3)
{
printf("请输入要退房的客户的房间号:");
scanf("%d",number);
head=del(head,number);
print(head);
}
else
if(m==4)
{
printf("请输入要查询的客户的姓名:");
scanf("%s",c_name);
search(head,c_name);
}
else
printf("执行操作错误!");
}
有5个警告而已,不过已经很不错了