??????????%20?????%20Parallaxis%20(2) - PowerPoint PPT Presentation

About This Presentation
Title:

??????????%20?????%20Parallaxis%20(2)

Description:

Parallaxis (2) . . – PowerPoint PPT presentation

Number of Views:47
Avg rating:3.0/5.0
Slides: 29
Provided by: Predr2
Category:

less

Transcript and Presenter's Notes

Title: ??????????%20?????%20Parallaxis%20(2)


1
?????????? ????? Parallaxis (2)
  • ??????????? ?????? ????.
  • ?????????? ???????????.

2
??????????? ?????? ????
  • PROCEDURE Ime_pp(deklaracija argumenata)
  • --- deklaracija lokalnih promenljivih
  • BEGIN
  • --- telo potprograma
  • END Ime_pp

3
??????????? ?????? ????
  • ??? ??????????? ?????????? ?? ????? ???????? ??
    ??????
  • ?????? ??? VAR ?? ????? ?? ?????????,
  • ??? ?????????,
  • ???? ?
  • ??? ?????????.
  • ??????????? ?????????? ???????? ?? ?????? .

4
??????????? ?????? ????
  • ? ?????? Parallaxis ??????? 28 ???????????
    ??????????? ?????? ????.
  • ??????????? ??????? ??????
  • ord ?????????, ???????? ? ?????????? ??????
    ????????
  • elem ??? ???????? ?????
  • skup ??? SET OF elem
  • niz ?????????? ???? ARRAY OF char.

5
??????????? ?????? ????
  • DEC(SCALAR VAR x ord)
  • DEC(VECTOR VAR x ord)
  • ??????? ???????? ?????????? x ?? 1 ??? ????????
    ??????????? ???????? ????? ???????????
    ???????????.

6
??????????? ?????? ????
  • DEC(SCALAR VAR xordSCALAR nINTEGER)
  • DEC(VECTOR VAR xordVECTOR nINTEGER)
  • ??????? ???????? ?????????? x ?? n ??? ????????
    ??????????? ???????? ????? n-??? ???????????.

7
??????????? ?????? ????
  • INC(SCALAR VAR x ord)
  • INC(VECTOR VAR x ord)
  • ??????? ???????? ?????????? x ?? 1 ??? ????????
    ??????????? ???????? ????? ???????????
    ??????????.

8
??????????? ?????? ????
  • INC(SCALAR VAR xordSCALAR nINTEGER)
  • INC(VECTOR VAR xordVECTOR nINTEGER)
  • ??????? ???????? ?????????? x ?? n ??? ????????
    ??????????? ???????? ????? n-??? ??????????.

9
??????????? ?????? ????
  • EXCL(SCALAR VAR xskupSCALAR yelem)
  • EXCL(VECTOR VAR xskupSCALAR yelem))
  • ?????? ??????? y ?? ????? x.

10
??????????? ?????? ????
  • INCL(SCALAR VAR xskupSCALAR yelem)
  • INCL(VECTOR VAR xskupSCALAR yelem)
  • ????? ??????? y ? ???? x.

11
??????????? ?????? ????
  • Write(SCALAR cchar)
  • ???? c ?? ???? ?? ??????? ??????? ?????.

12
??????????? ?????? ????
  • WriteInt(SCALAR iINTEGERSCALAR nCARDINAL)
  • ????? ????? ????? i ?? ??????? ??????? ????? ??
    ??????? ?? n ???????.
  • WriteCard(SCALAR i,nCARDINAL)
  • WriteReal(SCALAR rREALSCALAR nCARDINAL)
  • WriteFixPt(SCALAR rREALSCALAR n,pCARDINAL)
  • WriteBool(SCALAR bBOOLEAN)
  • WriteString(SCALAR sniz)
  • Writeln

13
??????????? ?????? ????
  • Read(SCALAR VAR cCHAR)
  • ReadInt(SCALAR VAR iINTEGER)
  • ReadCard(SCALAR VAR cCARDINAL)
  • ReadReal(SCALAR VAR rREAL)
  • ReadBool(SCALAR VAR bBOOLEAN)
  • ReadString(SCALAR VAR sniz)

14
??????????? ?????? ????
  • OpenInput(SCALAR sniz)
  • OpenOutput(SCALAR sniz)
  • CloseInput
  • CloseOutput

15
?????????? ???????????
  • PROCEDURE Ime_pp(dekl_arg) dekl_rez
  • --- deklaracija lokalnih promenljivih
  • BEGIN
  • --- telo potprograma
  • RETURN(rezultat)
  • END Ime_pp

16
?????????? ???????????
  • ??????????? ?????????? ?? ???? ??? ? ???
    ??????????? ?????? ???? ???? ??? ?? ???????
    ?????? ??? VAR.
  • ? ??????????? ????????? ?????? ?? ?? ?? ??
    ???????? ???????? ??? ?????????, ??? ? ???
    ?????????.
  • ???????? ??????? RETURN ?? ??????? ????????
    ??????????? ? ???? ???? ?????????? ??? ?????.

17
?????????? ???????????
  • ? ??????????? ?????? Parallaxis ??????? 32
    ?????????? ?????????? ???????????.
  • ???? ?????? ?????????? ?????? ??????????? ?
  • tip ??? ???? ???????
  • port ??? ?????

18
?????????? ???????????
  • COS(SCALAR rREAL)SCALAR REAL
  • COS(VECTOR rREAL)VECTOR REAL
  • SIN(SCALAR rREAL)SCALAR REAL
  • SIN(VECTOR rREAL)VECTOR REAL
  • TAN(SCALAR rREAL)SCALAR REAL
  • TAN(VECTOR rREAL)VECTOR REAL
  • ARCSIN(SCALAR rREAL)SCALAR REAL
  • ARCSIN(VECTOR rREAL)VECTOR REAL
  • ARCCOS(SCALAR rREAL)SCALAR REAL
  • ARCCOS(VECTOR rREAL)VECTOR REAL

19
?????????? ???????????
  • ARCTAN(SCALAR rREAL)SCALAR REAL
  • ARCTAN(VECTOR rREAL)VECTOR REAL
  • ? ?????? -?/2, ?/2
  • ARCTAN2(SCALAR r1,r2REAL)SCALAR REAL
  • ARCTAN2(VECTOR r1,r2REAL)VECTOR REAL
  • arctg(r1/r2) ? -?, ?

20
?????????? ???????????
  • EXP(SCALAR rREAL)SCALAR REAL
  • EXP(VECTOR rREAL)VECTOR REAL
  • LN(SCALAR rREAL)SCALAR REAL
  • LN(VECTOR rREAL)VECTOR REAL
  • SQRT(SCALAR rREAL)SCALAR REAL
  • SQRT(VECTOR rREAL)VECTOR REAL

21
?????????? ???????????
  • ABS(SCALAR xINTEGER)SCALAR CARDINAL
  • ABS(VECTOR xINTEGER)VECTOR CARDINAL
  • ABS(SCALAR xREAL)SCALAR REAL
  • ABS(VECTOR xREAL)VECTOR REAL
  • FLOAT(SCALAR iINTEGER)SCALAR REAL
  • FLOAT(VECTOR iINTEGER)VECTOR REAL
  • TRUNC(SCALAR rREAL)SCALAR INTEGER
  • TRUNC(VECTOR rREAL)VECTOR INTEGER

22
?????????? ???????????
  • CAP(SCALAR cCHAR)SCALAR CHAR
  • CAP(VECTOR cCHAR)VECTOR CHAR
  • ???????? ???? ? ?????? ?????.
  • CHR(SCALAR iINTEGER)SCALAR CHAR
  • CHR(VECTOR iINTEGER)VECTOR CHAR
  • ORD(SCALAR iord)SCALAR INTEGER
  • ORD(VECTOR iord)VECTOR INTEGER
  • ORD(SCALAR iCHAR)SCALAR INTEGER
  • ORD(VECTOR iCHAR)VECTOR INTEGER

23
?????????? ???????????
  • EVEN(SCALAR iINTEGER)SCALAR BOOLEAN
  • EVEN(VECTOR iINTEGER)VECTOR BOOLEAN
  • ODD(SCALAR iINTEGER)SCALAR BOOLEAN
  • ODD(VECTOR iINTEGER)VECTOR BOOLEAN
  • MAX(TIP ord)SCALAR ord
  • ??????? ??????? ???? ??????? ???? ord.
  • MIN(TIP ord)SCALAR ord
  • ??????? ??????? ???? ??????? ???? ord.

24
?????????? ???????????
  • SIZE(SCALAR xTIP)SCALAR INTEGER
  • SIZE(VECTOR xTIP)VECTOR INTEGER
  • ????? ???? ??????????? ???????? ???? ???????
    ?????????? x.

25
?????????? ???????????
  • STRCMP(SCALAR s1,s2niz)SCALAR INTEGER
  • STRCMP(VECTOR s1,s2niz)VECTOR INTEGER
  • ?????? ???????? ?????? s1 ? s2 ????????
    ???????? ?? 1, 0 ??? -1 ? ?????????? ?? ???? ??
    ?? ?? ??? s1 ? ??????????????? ?????? ????,
    ?????? ??? ???? ?? ???? s2.
  • STREQ(SCALAR s1,s2niz)SCALAR BOOLEAN
  • STREQ(VECTOR s1,s2niz)VECTOR BOOLEAN
  • ?????? ???????? ?????? s1 ? s2 ????? TRUE ???
    ?? s1 ? ??????????????? ?????? ???? ?? ???? s2
    ????? FALSE.

26
?????????? ???????????
  • SBRANDOM()SCALAR BOOLEAN
  • VBRANDOM()VECTOR BOOLEAN
  • SCRANDOM()SCALAR CHAR
  • VCRANDOM()VECTOR CHAR
  • SIRANDOM()SCALAR INTEGER
  • VIRANDOM()VECTOR INTEGER
  • SRRANDOM()SCALAR REAL
  • VRRANDOM()VECTOR REAL

27
?????????? ???????????
  • VAL(TIP ordSCALAR nINTEGER)SCALAR ord
  • VAL(TIP CHARSCALAR nINTEGER)SCALAR CHAR
  • VAL(TIP ordVECTOR nINTEGER)VECTOR ord
  • VAL(TIP CHARVECTOR nINTEGER)VECTOR ord
  • ??????? ??? ???? n ? ???????????? ???????
    ?????? ????. ????
  • ORD(VAL(ord,n)) n
  • VAL(CHAR,n) CHAR(n)

28
?????????? ???????????
  • IN_Connected(PORT ul_port)VECTOR BOOLEAN
  • OUT_Connected(PORT izl_port)VECTOR BOOLEAN
  • IN_LineConnected(PORT izl_port,ul_port)VECTOR
    BOOLEAN
  • OUT_LineConnected(PORT izl_port,ul_port)VECTOR
    BOOLEAN
Write a Comment
User Comments (0)
About PowerShow.com