資源簡介
華科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個文件信息
評論
共有 條評論