Модульное программирование в Турбо Паскале. Бакланов М.В - 5 стр.

UptoLike

Составители: 

- 5 -
LZdbfh[jZahffh^mevkhklhblbaaZ]heh\dZbljzohkgh\guoqZkl_c ex[Zyba
dhlhjuofh`_l[ulvimklhc
4. Dhfibeypbyfh^me_c
DZd b ijh]jZffZ fh^mev ihf_sZ_lky \ nZce b dhfibebjm_lky Bfy nZceZ
kh^_j`Zs_]h bkoh^guc l_dkl fh^mey ^he`gh kh\iZ^Zlv k bf_g_f wlh]h fh^mey
Dhfibeylhj ihke_ ljZgkeypbb ihf_sZ_l dh^ fh^mey \nZce klZdbf `_ bf_g_f b
jZkrbj_gb_f738hl Zg]e 7XUER 3DVFDO 8QLW Bfy fh^meydZd b bfy nZceZ
^he`ghkh^_j`Zlvg_[he__kbf\heh\<h^ghfnZce_fh`_ljZaf_sZlvkylhevdh
h^bg fh^mev  ?keb g_h[oh^bfh ojZgblv dh^ fh^mey \ nZce_ k ^jm]bf bf_g_f lh
fh`ghbkihevah\Zlv^bj_dlb\m$U ^eyi_j_hij_^_e_gbybf_gbnZceZWlZ^bj_dlb\Z
bf__l h^bg iZjZf_lj dhlhjuc ljZdlm_lky dZd gZklhys__ bfy nZceZ k ^Zgguf
fh^me_f  HgZ ^he`gZgZoh^blvkyi_j_^i_j\ufbkihevah\Zgb_ffh^mey\
ki_pbnbdZpbbbkihevah\ZgbyGZijbf_j, dhgkljmdpby
Uses
{ $U Nain } ABC;
ijb\_^zldlhfmqlhdhfibeylhj[m^_lbkdZlvdh^fh^mey:<K\^bkdh\hfnZce_
Nain.TPU.
<kj_^_Lmj[hIZkdZeyhij_^_e_guljbj_`bfZdhfibeypbb
COMPILE,
MAKE,
BUILD.
Ijb dhfibeypbb fh^me y beb hkgh\ghc ijh]jZffu \ j_`bf_ COMPILE \k_
mihfbgZx sb_ky\ij_^eh`_gbbUsesfh^meb^he`gu[ulv ij_^\Zjbl_evgh
hldhfibebjh\Zgu b j_amevlZlu dhfibeypbb ihf_s_gu \ h^ghbf_ggu_ nZceu k
jZkrbj_gb_fTPU.GZijbf_j_keb\ijh]jZff_fh^me_bf__lkyij_^eh`_gb_
Uses Global;
lh gZ ^bkd_\dZlZeh]_ h[ty\e_gghfhipb_c OPTIONS\DIRECTORIES m`_ ^he`_g
gZoh^blvky nZce NZce k jZkrbj_gb_f TPU kha^Z_lky Z\lhfZlbq_kdb \ j_am evlZl_
dhfibeypbbfh^mey_kebhkgh\gZyijh]jZff Zfh`_ldhfibebjh\Zlvky[_akha^Zgby
bkihegy_fh]h?O?-nZceZlhdhfibeypbyfh^mey\k_]^Zijb\h^bldkha^ZgbxTPU-
nZceZ.
< j_`bf_ MAKE dhfibeylhj ijh\_jy_l gZebqb_738-nZceh\ ^ey dZ`^h]h
h[ty\e_ggh]hfh^m ey?kebdZdhc-gb[m^v banZceh\g_h[gZjm `_gkbkl_fZiulZ_lky
hlukdZlvh^ghbf_ggucnZcekjZkrbj_gb_fPASlh_klvnZcekbkoh^gufl_dklhf
fh^mey b _keb lZdhc nZce gZc^_g ijbklmiZ_l d dhfibeypbb Djhf_ lh]h \ wlhf
j_`bf_ kbkl_fZ ke_^bl aZ \hafh`gufb baf_g_gbyfb bkoh^gh]h l_dklZ ex[h]h
bkihevam_fh]h fh^mey ?keb \ PAS-nZceubkoh^guc l_dkl fh^mey \g_k_gu
baf_g_gby lh g_aZ\bkbfh hl lh]h _klv eb \ dZlZeh]_ khhl\_lkl\mxsbc TPU-nZce
beb g_l kbkl_fZ hkms_kl\ey_l __ dhfibeypbx i_j_^ dhfibeypb_c hkgh\ghc
                                       -5-
     LZdbfh[jZahffh^mevkhklhblbaaZ]heh\dZbljzohkgh\guoqZkl_c ex[Zyba
dhlhjuofh`_l[ulvimklhc


                               4. Dhfibeypbyfh^me_c

      DZd b ijh]jZffZ fh^mev ihf_sZ_lky \ nZce b dhfibebjm_lky Bfy nZceZ
kh^_j`Zs_]h bkoh^guc l_dkl fh^mey ^he`gh kh\iZ^Zlv k bf_g_f wlh]h fh^mey
Dhfibeylhj ihke_ ljZgkeypbb ihf_sZ_l dh^ fh^mey \ nZce k lZdbf `_ bf_g_f b
jZkrbj_gb_f 738 hl Zg]e 7XUER 3DVFDO 8QLW  Bfy fh^mey dZd b bfy nZceZ 
^he`ghkh^_j`Zlvg_[he__kbf\heh\<h^ghfnZce_fh`_ljZaf_sZlvkylhevdh
h^bg fh^mev ?keb g_h[oh^bfh ojZgblv dh^ fh^mey \ nZce_ k ^jm]bf bf_g_f lh
fh`ghbkihevah\Zlv^bj_dlb\m$U ^eyi_j_hij_^_e_gbybf_gbnZceZWlZ^bj_dlb\Z
bf__l h^bg iZjZf_lj dhlhjuc ljZdlm_lky dZd gZklhys__ bfy nZceZ k ^Zgguf
fh^me_f HgZ ^he`gZ gZoh^blvky i_j_^ i_j\uf bkihevah\Zgb_f fh^mey \
ki_pbnbdZpbbbkihevah\ZgbyGZijbf_j, dhgkljmdpby
            Uses { $U Nain } ABC;
ijb\_^zl d lhfm qlh dhfibeylhj [m^_l bkdZlv dh^fh^mey :