c语言编写的自助旅游系统学校课设


华科C语言课程设计资源,内置中文输入法,不太强大,但基本能够满足课题要求
资源截图
代码片段和文件信息
/*————by  张家乐		 
*/
#include“addinfo.h“
void addspot(City*hd)
{
  Spot*spottemp=NULL; 
    Region*regiontemp=NULL;    
    int xy;
int i;
    char tshi0[5][18]={“内存不足“
                      “景区不存在“
  “景点已经存在“
                      “信息不能为空“
                      “添加景点成功“}; 
  
Coordinate bk={100130};

Area xx_area[5]={{{120180}{790204}}
                 
 
 {{120276}{770300}}
    
 {{120372}{770396}}

 {{120468}{770492}}
 {{120564}{770660}}};
Area exit_area={{960100}{1024130}};
Area yes_area={{300660}{400700}};
Area no_area={{500660}{600700}};
MOUSE mouse_new mouse_old = {{00}0};

char tshi[5][21]={“热门(是1否0):“
               “景点名称:“
   “景区名称:“
   “城市名称:“
  
   “景点简介:“};
char *temp0[5];

if((spottemp=(Spot*)malloc(sizeof(Spot)))==NULL)
{
tanchuang(tshi0[0]);
}

temp0[0]=spottemp->ishot;
temp0[1]=spottemp->spot_name;
temp0[2]=spottemp->region_name;
temp0[3]=spottemp->city_name;
temp0[4]=spottemp->spot_intro;
    memset(spottemp->ishot02);
memset(spottemp->spot_name015);
memset(spottemp->region_name015);
memset(spottemp->city_name09);
memset(spottemp->spot_intro0199);
spottemp->next=NULL;

for(i=0;i<5;i++)
temp0[i][0]=‘‘;


StoreBk(bk800600“tjxx“);
Putbmp64k(100130“bmp\tjxx.bmp“);
    for(i=0;i<4;i++)
{

        Putbmp64k(xx_area[i].lt.xxx_area[i].lt.y“bmp\hzxx1.bmp“);
x=xx_area[i].lt.x+10y=xx_area[i].lt.y+4;
        printtxt0(&x&ytshi[i]0800);
printtxt0(&x&ytemp0[i]0800);
}
Putbmp64k(xx_area[i].lt.xxx_area[i].lt.y“bmp\hzxx3.bmp“);
x=xx_area[i].lt.x+10y=xx_area[i].lt.y+4;
        printtxt0(&x&ytshi[i]0800);
printtxt0(&x&ytemp0[i]0800);

MouseReset();
while(1)
{
MouseXYB( & mouse_new);
        MousePutBk(mouse_old.position);
        MouseStoreBk(mouse_new.position);
        MouseDraw(mouse_new);
        delay(50);
        mouse_old = mouse_new;
for(i=0;i<4;i++)
{
if(MouseBarLeft(xx_area[i])==1)
         {
MousePutBk(mouse_old.position);
if(srtc(tshi[i]temp0[i])==1)
{
Putbmp64k(xx_area[i].lt.xxx_area[i].lt.y“bmp\hzxx1.bmp“);
        x=xx_area[i].lt.x+10y=xx_area[i].lt.y+4;
                printtxt0(&x&ytshi[i]0800);
        printtxt0(&x&ytemp0[i]0800);
}
MouseStoreBk(mouse_new.position);
            delay(60);
             mouse_old = mouse_new;
}
}
if(MouseBarLeft(xx_area[5])==1)
         {
MousePutBk(mouse_old.position);
if(srtc(tshi[5]temp0[5])==1)
{
Putbmp64k(xx_area[5].lt.xxx_area[5].lt.y“bmp\hzxx3.bmp“);
        x=xx_area[5].lt.x+10y=xx_area[5].lt.y+4;
                printtxt0(&x&ytshi[5]0800);
        printtxt0(&x&ytemp0[5]0800);
}
MouseStoreBk(mouse_new.position);
            delay(60);
             mouse_old = mouse_new;
}
if(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-11-11 00:18  KS2C
     文件        5200  2017-11-11 00:25  KS2C2.DSK
     文件      266643  2017-11-11 00:25  KS2C2.EXE
     文件       15463  2017-11-11 00:25  KS2C2.PRJ
     文件       11812  2017-11-10 12:25  KS2Caddinfo.cpp
     文件         165  2017-11-09 20:19  KS2Caddinfo.h
     文件       13394  2017-11-10 22:27  KS2CADDINFO.OBJ
     文件       13714  2017-11-11 00:25  KS2Caddsche.cpp
     文件         221  2017-11-08 21:26  KS2Caddsche.h
     文件       14013  2017-11-11 00:25  KS2CADDSCHE.OBJ
     目录           0  2017-11-10 22:20  KS2CBGI
     文件        6332  1992-06-10 03:10  KS2CBGIATT.BGI
     文件       40382  1992-06-10 03:10  KS2CBGIBGIDEMO.C
     文件       12208  1992-06-10 03:10  KS2CBGIBGIOBJ.EXE
     文件       14670  1992-06-10 03:10  KS2CBGIBOLD.CHR
     文件        6332  1992-06-10 03:10  KS2CBGICGA.BGI
     文件        5554  1992-06-10 03:10  KS2CBGIEGAVGA.BGI
     文件        8439  1992-06-10 03:10  KS2CBGIEURO.CHR
     文件       18063  1992-06-10 03:10  KS2CBGIGOTH.CHR
     文件        6204  1992-06-10 03:10  KS2CBGIHERC.BGI
     文件        6665  1992-06-10 03:10  KS2CBGIIBM8514.BGI
     文件       12083  1992-06-10 03:10  KS2CBGILCOM.CHR
     文件        5131  1992-06-10 03:10  KS2CBGILITT.CHR
     文件        6012  1992-06-10 03:10  KS2CBGIPC3270.BGI
     文件       13596  1992-06-10 03:10  KS2CBGISANS.CHR
     文件       10987  1992-06-10 03:10  KS2CBGISCRI.CHR
     文件        8437  1992-06-10 03:10  KS2CBGISIMP.CHR
     文件       16677  1992-06-10 03:10  KS2CBGITRIP.CHR
     文件       17355  1992-06-10 03:10  KS2CBGITSCR.CHR
     目录           0  2017-11-10 22:20  KS2Cmp
     文件      180054  2017-10-31 22:41  KS2Cmp1111.bmp
............此处省略270个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)