• 大小: 23.93MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-04
  • 语言: C/C++
  • 标签: 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]=‘\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  KS2C\2.DSK
     文件      266643  2017-11-11 00:25  KS2C\2.EXE
     文件       15463  2017-11-11 00:25  KS2C\2.PRJ
     文件       11812  2017-11-10 12:25  KS2C\addinfo.cpp
     文件         165  2017-11-09 20:19  KS2C\addinfo.h
     文件       13394  2017-11-10 22:27  KS2C\ADDINFO.OBJ
     文件       13714  2017-11-11 00:25  KS2C\addsche.cpp
     文件         221  2017-11-08 21:26  KS2C\addsche.h
     文件       14013  2017-11-11 00:25  KS2C\ADDSCHE.OBJ
     目录           0  2017-11-10 22:20  KS2C\BGI\
     文件        6332  1992-06-10 03:10  KS2C\BGI\ATT.BGI
     文件       40382  1992-06-10 03:10  KS2C\BGI\BGIDEMO.C
     文件       12208  1992-06-10 03:10  KS2C\BGI\BGIOBJ.EXE
     文件       14670  1992-06-10 03:10  KS2C\BGI\BOLD.CHR
     文件        6332  1992-06-10 03:10  KS2C\BGI\CGA.BGI
     文件        5554  1992-06-10 03:10  KS2C\BGI\EGAVGA.BGI
     文件        8439  1992-06-10 03:10  KS2C\BGI\EURO.CHR
     文件       18063  1992-06-10 03:10  KS2C\BGI\GOTH.CHR
     文件        6204  1992-06-10 03:10  KS2C\BGI\HERC.BGI
     文件        6665  1992-06-10 03:10  KS2C\BGI\IBM8514.BGI
     文件       12083  1992-06-10 03:10  KS2C\BGI\LCOM.CHR
     文件        5131  1992-06-10 03:10  KS2C\BGI\LITT.CHR
     文件        6012  1992-06-10 03:10  KS2C\BGI\PC3270.BGI
     文件       13596  1992-06-10 03:10  KS2C\BGI\SANS.CHR
     文件       10987  1992-06-10 03:10  KS2C\BGI\SCRI.CHR
     文件        8437  1992-06-10 03:10  KS2C\BGI\SIMP.CHR
     文件       16677  1992-06-10 03:10  KS2C\BGI\TRIP.CHR
     文件       17355  1992-06-10 03:10  KS2C\BGI\TSCR.CHR
     目录           0  2017-11-10 22:20  KS2C\bmp\
     文件      180054  2017-10-31 22:41  KS2C\bmp\1111.bmp
............此处省略270个文件信息

评论

共有 条评论