.


:




:

































 

 

 

 





Delphi - , , . Delphi : ) , ) , ) . ֳ , . .

1) .

2) . ˳ , (, ..). ( ).

:

1. Standard Windows.

2. Additional. ̳ : ) , , ) .

3. System ' , , 䳿 .

4. Win32 ̳ , Windows.

5. Dialogs ̳

6. Data Access, Data Controls ( )

3) , , . , '.

4) ϳ .

5) ', , . - , - 䳿.

6) Delphi . . . ' , ( ' - Main.pas). . : .

7) ' ', .

29. Pascal (Delphi).

Delphi 5 Windows: TCanvas , TPen , TBrush , TFont .

ᒺ ᒺ, .

ᒺ, ᒺ , (Pen), (Brush) (Font).

ᒺ Canvas.

1. Brush ( TBrush):

1. Color ;

2. Style ;

3. Bitmap 8x8, .

2. Font:

1. Color ;

2. Height ;

3. Name (Arial, Times New Roman );

4. Size .

5. Style (, , ).

3. Pen:

1. Color ;

2. Style ( , );

3. Width .

ᒺ Canvas:

1. Arc (X1, Y1, X2, Y2, X3, Y3, X4, Y4: Integer) .

2. Ellipse (X1, Y1, X2, Y2: Integer) .

3. FillRect (const Rect: TRect) .

4. FrameRect (const Rect: TRect) .

5. LineTo (X, Y: Integer) (X,Y).

6. MoveTo (X, Y: Integer) (X,Y).

7. Polygon (const Points: array of TPoint) .

8. PolyLine (const Points: array of TPoint) .

9. Rectangle (X1, Y1, X2, Y2: Integer) .

10. RoundRect (X1, Y1, X2, Y2, X3, Y3: Integer) - .

11. TextOut (X, Y: Integer; const Text: String) .

12. TextRect (Rect: TRect; X,Y: Integer; const Text: String) , Text , , Rect.

 

30. () Pascal (C++).

ᒺ ᒺ . STRUCT. ᒺ .

STRUCT [ ]

{

1 1;

2 2;

}; [_];

, . , , . ' , .

, (.) (->).

.

. 11 .

a[10].day=12;

*p->month=3;

cin.getline(a[b].name,sizeof(a[6].name));

anketa b={31,12,2001,Petro};

, , .

, ++, , FILE, stdio.h. - fopen, FILE.

- fopen:

FILE *fopen(const char *filename, const char *mode);

- ' ' . mode .

mode fopen:

r- ;

w- ;

a- ;

r+- ;

+" t ( ), b (, ).

 





:


: 2015-11-05; !; : 380 |


:

:

, - , ; , - .
==> ...

1438 - | 1457 -


© 2015-2024 lektsii.org - -

: 0.015 .