Выполнение индивидуального задания и его защита
План:
1. Практическая работа «Индивидуальная проектная работа»
Bashni
Uses crt, Graph;
Var P:pointer;
Size:Word;
X1,Y1:Word;
gd,gm: integer;
Begin gd:=detect;
InitGraph(gd,gm,'');
IF GraphResult<>0 THEN Halt(1);
SetViewPort(0,0,640,80,TRUE);
ClearViewPort;
SetBkColor(black);
SetColor(yellow);
SetLineStyle(0,1,Thickwidth);
Rectangle(120,400,200,440);
Size:=ImageSize(120,400,200,440);
GetMem(p,Size);
GetImage(120,400,200,440,P^);
Y1:=440;
WHILE Y1>=40 DO begin X1:= 120;
begin PutImage(X1,Y1,p^,CopyPut);
Delay(59000);
X1:=X1+80
end;
Y1:=Y1-40 end; x1:=x1-160;WHILE X1<=280 DO
begin
PutImage(X1,Y1,p^,CopyPut);
{CopyPut = 0 - режим копирования изображения}
X1:=X1 +160
end;
setfillstyle(8,red);
Bar(200,40,280,500); Bar(40,40,120,500);
{добавляем надпись}
SetColor(11);SETTEXTSTYLE(6,7,6);
outtextxy(350,100,'BASHNYA!');
Readln;
CloseGraph
End.
Text
Uses crt, Graph;
Var P:pointer;{указатель на область}
Size:Word; {размер области}
X1,Y1:Word; {координаты нач точки}
gd,gm: integer;
Begin gd:=detect;
InitGraph(gd,gm,'');
SetColor(11);SETTEXTSTYLE(4,0,7);
outtextxy(20,200,'Turbo Pascal ');
Readln;
CloseGraph
End
cnegovik
program snegovik;
uses graph;
var
i,j,x,y:integer;
grdriver:integer;
grmode:integer;
begin
grdriver:=detect;
initgraph(grdriver,grmode,'c');
x:=50;y:=30;
for i:=1 to 10 do
begin
for j:=1 to 10 do
begin
setcolor(blue);
circle(x,y,10);circle(x,y+30,20);
circle(x,y+80,30);circle(x-30,y+30,10);
circle(x+30,y+30,10);setcolor(5);
line(x,y-5,x+15,y);line(x,y+5,x+15,y);
setcolor(white);line(x-5,y+5,x+5,y+5);
putpixel(x-5,y-5,white);
putpixel(x+5,y-5,white);
putpixel(x,y+20,white);
putpixel(x,y+30,white);
putpixel(x,y+40,white);
putpixel(x,y+60,white);
putpixel(x,y+70,white);
putpixel(x,y+80,white);
putpixel(x,y+90,white);
putpixel(x,y+100,white);setcolor(3);
line(x-5,y-10,x+5,y-10);
line(x+5,y-10,x,y-20);
line(x,y-20,x-5,y-10);x:=x+90; end;
y:=y+160;x:=50;end;readln
end.