# include & ltstdio.h & gt
# include & ltstdlib.h & gt
# include & ltalloc.h & gt
# include & ltmath.h & gt
주 ()
{
Void * ptr
Int GD = DETECT
Int GM
부동 I;
Initgraph (& Gd, & ampgm, "d: \ \ TC");
Setactivepage (1);
Setcolor (빨간색);
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;; 나 & lt3000; I++)
Putpixel(random(640), random(480), random (15));
For(I = 0;; 나 & lt6.28*4; I=i+0.005)
{
Putimage(300+8*(cos(i)+i*sin(i)), 240+6*(sin(i)-i*cos(i))
Putimage(300+8*(cos(i)+i*sin(i)), 240+6*(sin(i)-i*cos(i))
If (kbhit ())
깨뜨리다
지연 (10);
}
Getch ();
Closegraph ();
}
Vc++6.0 테스트를 통과했습니다