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 & ltgraphics.h & gt

# 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.