.


:




:

































 

 

 

 


PASCAL. 2 .




1. .

, , . , . .

:

- : ;

- : .

( ).

, , , . .

:

- (Integer);

- (Real);

- (Boolean);

- (Char).

:

- : , ;

- : . .

2. PASCAL.

, D: D:\BORLAND\BP, .\ :

TURBO.EXE ;

TURBO.HLP , ;

TURBO.TP ;

TURBO.TPL .

D:\BORLAND\BP\BGI , : GRAPH.TPU , .BGI , .CHR, .

, , . . , , , , , .

:

ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz (_);

: 012345678 9.

F f.

:

 

+ *
.
* :
/ [ ]
> {}
< $
= ()
; ^
# @
`

:

:= 堠 <=

< >  >=

.. 頠 (..) [ ]

(* *) { }

, .

. , ' '.

, , .

, .

, .

, .

- , .

.

.

, , , , . , , , : integer, Sin, Cos, Ln, Sqr, Sqrt, Read, Readln, Write, Writeln. , , , , , .

:

1. ( , , ).

2. , (, ).

3. .

4. 127 , 63 .

, . , .

3. .

1) :=

2) go to ;

3) begin

1;

2;

N

end.

4) if then 1 else 2;

5) for to do ;

6 ) while do ;

7 ) repeat until ;

4. Pascal.

-.

. , .

, . . . . , Read(F) F, Delay(5) 5 .

, : ; . , Chr(65) ( ASII 65), Sqr(X) X X.

, - - , , , , , , .

: () . . . , .

5. .

6.0 : System, Crt, Dos, Graph, Graph3, Overlay, Printer, Vision. System , uses. : uses Crt, Dos, Printer.

.

System ; .

Crt .

Dos , .

Graph3 3.0.

Overlay .

Printer .

3.0.

Graph , CGA, EGA, VGA, HERC, IBM 3270, MCGA 6300.

Vision - .

6. .

System , uses. .

7. .

Abs(X:real/integer):real/integer X. .

ArcTan(X:real):real , X .

Cos(X:real): real X; .

Exp(X.real): real X, . . X. 2.718282.

Frac(X:real):real X.

Int(X:real):real X.

Ln(X:real):real X, . . ( = 2.718282).

Pi:real (3.141592653897932385).

Sin(X:real):real X. .

Sqr(X) X. .

Sqrt(X:real):real X.

Random.real 0..0.99.

Random(I:word):word 0..I.

Randomize .

8. .

, . , ( System, ), uses. , , : Pi, Sin(X), Chr(125), Inc(X,5). , .





:


: 2018-11-10; !; : 221 |


:

:

, ; , .
==> ...

1695 - | 1480 -


© 2015-2024 lektsii.org - -

: 0.079 .