.
(. first-generation programming language, 1GL) . , . , .
.
(2GL) , , . 1950- , , . , , , , . , , , , .
.
(3GL) , . , , , . , , , . , , -- . , . , . .
.
(4GL) . 1970- 1990-.
, , , , - , . , , .
|
|
.
90- . , . ( ). , , .
- , - (, ).
- , -. - : .
. , , , . () . , , , . , , -. , , , , () .
. - ( ), , , , . : HTML, PHP, ASP, ASPX, Perl, SSI, XML, DHTML, XHTML.
, , , . : PHP, Perl, Python, Ruby, .NET ( ASP.NET), Java, Groovy.
( ) , , .
3 . .
- , .
:
( ) , ;
, ;
, , , ;
|
|
, ;
, .
(). , , .. .
, - .
: ; ( ); ( ). , .
4 . .
- ( , , ).
.
5 . . . . . . .
( ), 1968-1971 , .
80- Turbo Pascal. Turbo - Borland International Inc. ().
, , : , , , .
, .
: , .
, () .
() , . , , .
:
.
0 9.
( 0 9 A(a) F(f)).
, .
, , : , .
, , , , , (identification ).
, . , .
, , . : integer, cos, sin, sqrt, read, write ..
, , , , . .
Const < >=< >;
( )
|
|
Var
< 1, 2, >: <1 >;
< 1, 2, >: <2 >;
( , , )
Begin ( )
< > ( (), ;)
End. ( )
:
Abs(x), - ( ) ;
Cos(x), - ;
Sin(x), - ;
Frac(x), - ;
Int(x), - ;
Pi, - π;
Random(x), - 0 . , 0 1. Randomize (. );
Sqr(x), - x2;
Sqrt(x), - √x.
^nà exp(n*ln(x))
Chr
Div ( ), 2- .
Mod 2- .
6 . USES. TYPE. VAR. . .
:
PROGRAM ;
( , . ? )
USES ();
( , )
LABEL ;
( )
CONST ;
( , )
TYPE ; ()
VAR ;
( , )
;
;
BEGIN
END.
USES
USES , ( ).
Crt . ( , .).
CRT - -
.
, . , , . , Pascal , . , , . type, , .
|
|
:
type < > = < >:
:
type
LatLetter = ('A'..'z');
Days = 1..31:
Matr = [1..10] of integer;
. , LatLetter , Days 1 31, Matr 10 .