.


:




:

































 

 

 

 


( )




, Borland, . , , , Borland .

, 1970 , , . , .

7.0

7.0 MS DOS. .

IBM, , , .

, , , , -, ..

, * , , , , .

, . , ( ) 152 .

 

.

.

 

A,B,...,Z;

a,b,,z;

.

 

0,1,2,, 9;

 

| { } | [ ] | () | |:= |; |: | = |, |.. |. | ^ | @ | # | $ |

 

, (. )

 

1.5. :

and, array,,while, with, xor

 

, : | % | & | .. ,

 

()

- :

1. ,

2.

, ..

, .

:

 

Integer 215  
Longint 231  
Byte 28  
Word 216  
Shortint 27  

.

:

+4; 168; -1245; +000;

 

()

Real

6 . 6- , ( 99). , 12 -14 .

:

-

, .

:

+13.167; -0.0002;

 

-

MEp

m , .

( 99)

:

3.123-; 123412

 

Char

1 . ,

:

1; d; #;

3.

256 , 1- , 255

, , .

:

; ******************; 35545767;

 

Boolean

1 . :

True - ;

False - .

( )

String

String 256 . 1- , 255 . , , .

:

S:=;

 

1. ?

) 123; ) 0.003; ) d; )1.245; ) ; ) True

2. ?

)12; )-34.02; ) s

? ?

 

 

:

 

, . :

-

:

17 - Integer; 3.14 - Real; h - Char; Tyrbo Pascal - String; True - Boolean

- , .

:

1=17;

2=3.14;

3=h;

, .

(). , , .

:

Summa_1

Y_1

. , , . , .

.

.

( )
     
PI       Real
ABS(X) |X| Integer Real Integer Real
SQR(X) X2 Integer Real Integer Real
SIN(X) Sin x Integer Real Real
COS(X) Cos x Integer Real Real
EXP(X) Ex Integer Real Real
LN(X) Ln x Integer Real Real
SQRT(X)   Integer Real Real
ARCTAN(X) Arctg x Integer Real Real
     
ORD(X) ( ASCII- ) Integer
CHR(X) ASCII- Integer Char
ROUND(X) Real Longint
TRUNG(X) Real Longint
     
PRED(X) ,
SUCC(X) ,
ODD(X) X Integer Boolean
     
RANDOM[(X)] Word X - , - Word: 0<=Rez<x Real: 0.0<=Rez<1.0

 

-

+  
-
*
/
div
mod

 

-

= ( )
<> ----/----- ----/-----
> ----/----- ----/-----
> ----/----- ----/-----
>= ----/----- ----/-----
<= ----/----- ----/-----

 

-

X Y X and Y X or Y X xor Y
False False False False False
False True False True True
True False False True True
True True True True False

,





:


: 2017-02-28; !; : 394 |


:

:

.
==> ...

1910 - | 1789 -


© 2015-2024 lektsii.org - -

: 0.026 .