Traditional Culture Encyclopedia - Travel guide - C language programming source code is urgently needed to make a scenic spot tourism consulting system!
C language programming source code is urgently needed to make a scenic spot tourism consulting system!
# include & ltstdio.h & gt
# include & ltstdlib.h & gt
# include & ltalloc.h & gt
# include & ltmath.h & gt
Master ()
{
void * ptr
int gd = DETECT
int gm
Floating I;
init graph(& amp; gd,& ampgm," d:\ \ TC ");
setactivepage( 1);
Setcolor (red);
setfillstyle( 1, 14);
filllellipse( 10, 10, 10, 10);
ptr=malloc(imagesize(0,0,20,20));
getimage(0,0,20,20,ptr);
randomize();
setactivepage(0);
for(I = 0; I & lt3000; i++)
putpixel(random(640),random(480),random( 15));
for(I = 0; I & lt6.28*4; i=i+0.005)
{
putimage(300+8*(cos(i)+i*sin(i)),240+6*(sin(i)-i*cos(i),ptr,COPY _ PUT);
putimage(300+8*(cos(i)+i*sin(i)),240+6*(sin(i)-i*cos(i),ptr,COPY _ PUT);
if (kbhit())
Break;
Delay (10);
}
getch();
closegraph();
}
Vc++6.0 passed the test.
- Previous article:Matters needing attention in traveling to Xisha Wetland Park
- Next article:How about Hunan Daofeng Tourism Planning and Design Co., Ltd.?
- Related articles
- How many days does it take from Taiyuan to go on road trip in Zhoushan Peach Blossom Island?
- What eco-friendly leading stocks are there?
- Brief introduction of Chengdu People's Park
- What's interesting in Macau?
- How far is it from Enshi Railway Station to Daughter City?
- Who knows what time the earliest bus from Tongling Long-distance Bus Station to Hefei Tourist Bus Station is?
- Want to travel
- Introduction of tourist attractions in Huludao, Liaoning Province
- Tianchang tourist attractions
- How much is the trip to Dalian?