代码_企业管理_经管营销_专业资料.docx
《代码_企业管理_经管营销_专业资料.docx》由会员分享,可在线阅读,更多相关《代码_企业管理_经管营销_专业资料.docx(48页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、代码一 主界面代码#includemain.hmouse_msg m;void welcome()PIMAGE img0=newimage(941,525);getimage(img0,image/begin.png,0,0);putimage(0,0,941,525,img0,0,0);delay_ms(1000);int menu()cleardevice();PIMAGE imgmain=newimage(941,525);getimage(imgmain,image/main.png,0,0);putimage(0,0,941,525,imgmain,0,0);int choice=0
2、;PIMAGE img=newimage(941,525);getimage(img,image/denglu.png,0,0);PIMAGE img1=newimage(941,525);getimage(img1,image/denglu1.png,0,0);PIMAGE img2=newimage(941,525);getimage(img2,image/denglu2.png,0,0);putimage(0,0,941,525,img,0,0);m=getmouse();while(true)m=getmouse();if(m.x178&m.x250&m.y522&m.x240&m.y
3、742&m.x427&m.y736&m.x214&m.y735&m.x300&m.y268&m.x213&m.y78&m.x213&m.y459&m.x213&m.y489)putimage(0,0,941,525,img3,0,0);if(m.is_down()quick_search();else putimage(0,0,941,525,img,0,0);void resetpassword()char temp20;admin a;inputbox_getline(修改密码,请输入新密码,a.password,20);inputbox_getline(修改密码,请确认新密码,temp,
4、20);if(strcmp(temp,a.password)!=0)doinputbox_getline(修改密码,错误!请输入新密码,a.password,20);inputbox_getline(修改密码,请确认新密码,temp,20);while(strcmp(temp,a.password)!=0);FILE *f1;f1=fopen(d:/adminpassword.dat,wb);fwrite(&a,sizeof(a),1,f1);fclose(f1);outtextxy(200,200,修改成功!);delay_ms(1000);adminf();void checkbookin
5、g()cleardevice();PIMAGE imgmain=newimage(941,525);getimage(imgmain,image/main.png,0,0);putimage(0,0,941,525,imgmain,0,0);int t;dot=getInteger(查看方式:表单图形化);while(t!=1&t!=2);if(t=1)textcheck();else if(t=2)graphcheck();void graphcheck()int t;dot=getInteger(查看方式:标准间商务间套间);while(t!=1&t!=2&t!=3);if(t=1)cle
6、ardevice();PIMAGE imgmain=newimage(941,525);getimage(imgmain,image/main.png,0,0);putimage(0,0,941,525,imgmain,0,0);FILE *f1,*f2;f1=fopen(d:/roommessage_biao.dat,ab);fclose(f1);f1=fopen(d:/roommessage_biao.dat,rb);fread(biaozhun_room,sizeof(struct Room),100,f1);fclose(f1);f2=fopen(d:/usermessage.dat,
7、ab);fclose(f2);f2=fopen(d:/usermessage.dat,rb);fread(user,sizeof(struct User),1000,f2);fclose(f2);PIMAGE img2=newimage(52,42);PIMAGE img3=newimage(52,42);PIMAGE img9=newimage(173,475);PIMAGE img0=newimage(86,53);getimage(img0,image/2.png,0,0);getimage(img9,image/9.png,0,0);/putimage(788,10,961,485,i
8、mg9,0,0);putimage(797,489,943,527,img0,0,0);getimage(img2,image/temp.png,0,0);getimage(img3,image/temp2.png,0,0);int count=1;for(int i=0;i10;i+)for(int j=0;j10;j+)if(biaozhun_roomcount.isbooked)putimage(10+80*i,10+50*j,62+80*i,52+50*j,img3,0,0);elseputimage(10+80*i,10+50*j,62+80*i,52+50*j,img2,0,0);
9、count+;if(t=2)cleardevice();PIMAGE imgmain=newimage(941,525);getimage(imgmain,image/main.png,0,0);putimage(0,0,941,525,imgmain,0,0);PIMAGE img2=newimage(50,40);PIMAGE img3=newimage(50,40);PIMAGE img0=newimage(86,53);PIMAGE img4=newimage(941,525);getimage(img4,image/10.png,0,0);getimage(img0,image/2.
10、png,0,0);getimage(img2,image/temp.png,0,0);getimage(img3,image/temp2.png,0,0);putimage(0,0,941,525,img4,0,0);putimage(797,489,943,527,img0,0,0);FILE* f1;f1=fopen(d:/usermessage.dat,ab);fclose(f1);f1=fopen(d:/usermessage.dat,rb);fread(user,sizeof(struct User),1000,f1);fclose(f1);f1=fopen(d:/roommessa
11、ge_shang.dat,ab);fclose(f1);f1=fopen(d:/roommessage_shang.dat,rb);fread(shangwu_room,sizeof(struct Room),30,f1);fclose(f1);int count=0;for(int i=0;i10;i+)for(int j=0;j3;j+)if(shangwu_roomcount.isbooked=true)putimage(130+70*i,150+140*j,180+70*i,190+140*j,img3,0,0);elseputimage(130+70*i,150+140*j,180+
12、70*i,190+140*j,img2,0,0);count+;if(t=3)cleardevice();PIMAGE imgmain=newimage(941,525);getimage(imgmain,image/main.png,0,0);putimage(0,0,941,525,imgmain,0,0);PIMAGE img2=newimage(50,40);PIMAGE img3=newimage(50,40);PIMAGE img0=newimage(86,53);PIMAGE img4=newimage(941,525);getimage(img4,image/11.png,0,
13、0);getimage(img0,image/2.png,0,0);getimage(img2,image/temp.png,0,0);getimage(img3,image/temp2.png,0,0);putimage(0,0,941,525,img4,0,0);putimage(797,489,943,527,img0,0,0);FILE* f1;f1=fopen(d:/usermessage.dat,ab);fclose(f1);f1=fopen(d:/usermessage.dat,rb);fread(user,sizeof(struct User),1000,f1);fclose(
14、f1);f1=fopen(d:/roommessage_shang.dat,ab);fclose(f1);f1=fopen(d:/roommessage_shang.dat,rb);fread(shangwu_room,sizeof(struct Room),20,f1);fclose(f1);int count=0;for(int i=0;i5;i+)for(int j=0;j797&m.x489&m.y527)adminf();void textcheck()cleardevice();PIMAGE imgmain=newimage(941,525);getimage(imgmain,im
15、age/main.png,0,0);putimage(0,0,941,525,imgmain,0,0);int t;dot=getInteger(标准间商务间套间);while(t!=1&t!=2&t!=3);PIMAGE img0=newimage(86,53);PIMAGE img1=newimage(941,525);PIMAGE img2=newimage(941,525);PIMAGE img3=newimage(941,525);getimage(img3,image/011.png,0,0);getimage(img2,image/010.png,0,0);getimage(im
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 代码 企业管理 经管 营销 专业 资料
限制150内