#include < graphics.h >
#include < conio.h >
void main()
{
int d = DETECT, m;
initgraph ( &d, &m, "C:\\BORLANDC\\BGI" );
setfillstyle (SOLID_FILL, WHITE);
bar ( 0, 0, 639, 479 );
setfillstyle ( SOLID_FILL, RED);
bar ( 220, 160, 420, 320 );
setcolor ( BLUE );
rectangle ( 220, 160, 420, 320 );
line ( 220, 160, 420, 320 );
line ( 220, 320, 420, 160);
setcolor ( MAGENTA );
circle ( 320, 240, 50);
setfillstyle (SOLID_FILL, YELLOW);
floodfill ( 320, 240, MAGENTA );
setcolor ( GREEN );
outtextxy ( 295, 235, "Привет!" );
getch();
closegraph();
}

Оценка - 1.1 (39)

2009-12-19 • Просмотров [ 13027 ]