Лабораторный практикум

  • Published on
    29-Jul-2015

  • View
    583

  • Download
    1

Embed Size (px)

Transcript

. .

-

136 04 01 - , 139 02 02 , 139 02 03 , 139 02 01 , 139 03 01 .

2011

1. DELPHI. ................................................................................... 5 1.1. Delphi ................................................ 5 1.2. Delphi............................................................................. 6 1.3. ........................................................................ 7 1.3.1. ..................................................................................... 7 1.3.2. ..................................................................... 7 1.3.3. (Edit) .............................................................. 8 1.3.4. (Label) ................................................................... 8 1.3.5. (Memo)................................ 8 1.3.6. Close.......................................................................... 9 1.3.7. (FormCreate) ......................................................................................................... 9 1.3.8. (ButtonClick) .......................................................................................................... 9 1.3.9. ............................................................... 10 1.4. .............................................................................. 12 2. DELPHI. .............................................................. 14 2.1. ........................................................................................ 14 2.2. if case Object Pascal....................................................... 15 2.3. Delphi................................................................................. 15 2.4. ...................................................................... 15 2.4.1. Co ....................................................................................... 16 2.4.2. heckBox.......................................................... 16 2.4.3. RadioGroup...................................................... 17 2.5. .............................................................................. 18 3. DELPHI. ............................ 20 3.1. Delphi ........................................................... 20 3.2. repeat, while, for..................................... 21 3.3. ...................................................................... 22 3.4. .............................................................................. 24 4. . ..................... 27 4.1. ......................................................... 27 4.2. ShowMessage MessageDlg................................ 29 4.3. ......................................................................................... 30 4.4. StringGrid..................................................................................... 30 4.5. ...................................................................... 31 4.6. .............................................................................. 352

5. ....................................................................37 5.1. ...........................................................37 5.2. ...............................................................................37 6. .................................................................................................................39 6.1. .................................................................................39 6.2. .............................................................................................39 6.3. ......................................................................................40 6.4. ......................................................................40 6.5. ...............................................................................42 7. .........................................................................................................................43 7.1. .........................................................................................43 7.2. ...............................................................................43 8. ....................................................................................................................45 8.1. OpenDialog SaveDialog..........................................................45 8.2. OpenDialog SaveDialog ......................................45 8.3. ......................................................................46 8.4. ...............................................................................51 9. ........................................................................................................53 9.1. ............................................................................53 9.2. Chart....................................53 9.3. ...............................................................................54 10. .....56 10.1. ..........................................................................................56 10.2. ...............................................................................56 10.3. .............................................................................59 11. ...............................................................................................................61 11.1. .......................................................................................61 11.2. .............................................................................61 12. ........................................................................................................................62 12.1. .......................................................................................62 12.2. .............................................................................62 13. ...................................................................................................................64 13.1. .......................................................................................64 13.2. .............................................................................64 14. ...................................................................................................................663

14.1. ....................................................................................... 66 14.2. ............................................................................ 66 15. ................... 68 15.1. ......................... 68 15.2. .................................................................... 73 15.3. ............................................................................ 76 16. . ........................................................................ 77 16.1. ..................................................................................... 77 16.2. .................................................................... 80 16.3. ............................................................................ 83 17. .................... 84 17.1. ........................... 84 17.2. .................................................................... 84 17.3. ............................................................................ 86 18. ............................................................................. 88 18.1. ........................................... 88 18.2. .................................................................... 88 18.3. ............................................................................ 91 19. .............................................................. 92 19.1. ............................................................................................................... 92 19.2. .................................................................... 98 19.3. .......................................................................... 100 1. ............................................................................................... 102 2. .................................................... 104 3. ASCII...................................................... 105 ......................................................................................................... 107

4

1. DELPHI. : Delphi. . 1.1. Delphi Delphi , , , . . 1.1 Borland Delphi 7.0.

. 1.1. Borland Delphi 7.0 1 ; 2 ; 3 ; 4 ; 5 - ; 6 ; 7 ; 8 - ; . . . () Delphi, (),5

. (), , , , , . ( c F11) . Properties () , Events () (, ). . . , . Delphi Object Pascal. , Windows-. , ( uses) ( type) (. 1.1). Delphi , (, OnClick, OnCreate). , Events (procedure), begin end Object Pascal . F12. 1.2. Delphi Delphi (*.pas), (*.dfm) , (*.dpr), , (*.res), , , , , (*.dof), (*.dcu), (*.pas) , (*.exe). , . Delphi . (Unit) .

6

, Object Pascal. : unit Unit1; interface // implementation // begin // end. , , , , (Uses). , , , , , , . . Delphi dcu, pas dfm. dcu exe. , ~df, ~dp, ~pa, , . 1.3. : x, y, z | e3 y x 2 | 2 . u = tg ( x + y ) * arctg ( z ) + ln( x) , . 1.2. 1.3.1. File>New>Application. , : , , . , . 1.3.2. ( Name) ( Caption) Form1.

7