Protsedura ha'm funksiya
-suwret. Protsedurag'a tiyisli masele
Download 335 Kb.
|
9.Prosedura hám Funkciyalar
- Bu sahifa navigatsiya:
- 3.6.6-suwret. Protseduraga tiyisli masele
3.6.5-suwret. Protsedurag'a tiyisli masele
2. Payda bolg'an tuymeshe ustine tishqansha tuymeshesin izbe-iz eki marte basamiz ha'm programmalastiriw maydanina yomendegi programmani kiritemiz. unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls; type TForm1 = class(TForm) Timer1: TTimer; procedure FormActivate(Sender: TObject); procedure Timer1Timer(Sender: TObject); private { Private declarations } public { Public declarations } end; procedure Ris; var Form1: TForm1; x,y: byte; implementation {$R *.dfm} procedure Ris; begin form1.Canvas.Pen.Color:=form1.Color; form1.Canvas.Ellipse(x,y,x+300,y+300); x:=x+50; form1.Canvas.Pen.Color:=clBlack; form1.Canvas.Ellipse(x,y, x+300, y+300) ; end; procedure TForm1.FormActivate(Sender: TObject); begin x:=0; y:=100; timer1.Interval:=50; end; procedure TForm1.Timer1Timer(Sender: TObject); begin Ris; end; end. Programma kiritilgenen son' F9 tuymesin saylaymiz. 3.6.6-suwret. Protsedurag'a tiyisli masele O'z betinshe sheshiw ushin maseleler Ekrang'a 10 dana programma so'zin shig'ariwshi programma duzin'. 1 den 20 g'a deyin bolgan sanlardin' kobeymesin esaplawshi programma duzin'. Kvadratti shepden ong'a hareketin korsetetug'in programma duzin'. Tuwri tortmuyeshlikdi shepden ong'a hareketine korsetetug'in programma duzin'. 5. funksiyanin' manisi araliqda qadem menen, araliqda qadem menen, araliqda qadam menen esaplan'. 6. vektor elementlerinin' osip bariw tartibinde jaylastirin'. 7. vektor elementlerinen en' kishisin tabiw programmasin sizin' 8. vektor elementlerinen en' ulkenin tabiw programmasin duzin'. 9. vektor elementlerinen osip bariw tartibinde jaylastirin'. 10. matritsanin' en" ulken ha'm en' kishi elementleri ornin almastirin'. 11. matritsanin' har bir ustunindegi on' elementler saninan payda bolg'an vektordi payda etin'. Download 335 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling