.


:




:

































 

 

 

 


( )




.. 2

.. 3

.. 3

... 4

. 13

1. 14

2. 23

.. 26


-, . , () . , , . - , .

 

, , . , () ? .

 

, (.. ) . . . , , . . , , .


{ }

PROGRAM ;

{------- ------------}

uses.................

const.................

type.................

var.................

procedure.................

function.................

{------- ------------}

BEGIN

.......................................

.......................................

.......................................

END.

 

()

:

: a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z.

: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.

: [ _ ].

() () : abc ABC . _. 1 127 . 63 : (!).

()

{}. .

USES ( )

uses --1, --2, --3,... --n;

(unit) - , , .

 

()

()

10 +100 -200
10.0 +100.25 -2.5e+12
$10 $1A00 $2BC2
() A 1 #255
ABC - 850 $ 10 000
[ 1, 2, 3 ] [ a, b, c ] [ a.. z ]

 

CONST ( )

const - = ; [...]

 

TYPE ( )

type - = -; [...]

VAR ( )

var --1, --2,... --n: ; [...]

2.2.3.1.

()
Integer 2 () -32768 +32767
Shortint 1 () -128 +127
Longint 4 () -2147483648 +2147483647
Byte 1 (/.)    
Word 2 (/.)    

 

2.2.3.2. ( )

()
Char     ()

 

2.2.3.3. ()

()
Boolean     true, false

 

2.2.3.4. ۻ

type - = -- .. --;

2.2.3.5. ߻

type - = ( 1, 2,... -n);

()
Real    
Single     {$N+}
Double     {$N+}
Extended     {$N+}
Comp   19 (.,64-bit) {$N+}

 

.

( )

const -: = ; [...]

2.3.1.

-: = ;

A b A + b a B a - b a b a * b a b a / b
                       
  -20 -10   -10   2.5 2.5 6.25     0.5

 

()
a B a div b a b a mod b a b a shl b a b a shr b
                       
                       

 

( )
Not And or xor
A not a a b a and b a b a or b a b a xor b
False True false false False false false false false false false
true False false true False false true true false true true
    true false False true false true true false true
    true true true true true true true true false
                       

 

( )
a = b
A <> b
a < b
A <= b ( )
a > b
A >= b ( )

 

( )

()
read(-) () read(a, b, c)  
Readln(-) , readln(a, b, c)  
Write(-) () write(n = ,n:10) write(n = ,n:p:q) p,q:
Writeln() , writeln(?:s+2) writeln(:spaces) s,spaces:
Clrscr ( ) clrscr crt
Textcolor() textcolor(magenta) crt
Textbackground() textbackground(0) crt
Window(x1,y1,x2,y2) (x1,y1)-(x2,y2) window(1,1,40,10) crt
Wherex x - x:= wherex crt
Wherey y - y:= wherey crt
Gotoxy(x,y) (x, y); x - [1..80]; y - [1..25]; gotoxy(40,10) gotoxy(50,wherey) crt

- ( crt)

( ) ( )
  Black   DarkGray
  Blue   LightBlue
  Green   LightGreen
  Cyan   LightCyan
  Red   LightRed
  Magenta   LightMagenta
  Brown   Yellow
  LightGray   White

 





:


: 2016-10-06; !; : 425 |


:

:

, .
==> ...

1563 - | 1332 -


© 2015-2024 lektsii.org - -

: 0.019 .