. , .
, , , . , -. .
60- . , . . . .
, . , , , . .
, , - . .
.
1954 , . , . , , . , , . , (1958), (1970),(1972).
(: Lisp . LISt Processing, 1958) (: Prolog . PROgramming in LOGic, 1972).
1970- 1980- - . , , .
- Object Pascal, C++, Java .
, , . - , , , , .
-
|
|
:
-
- , - .
-
3. ++
++ 80- (1983 .) AT&T Bell Laboratories . - , - . , . ++ -67 -68 :
1. ( )
2. -
3. .
, ++, . .
++ 80- . , ++ . , .
. , , - .
. Bell Labs. 1993 , ".
cfront, ++ . 80- , . GNU CC.
cfront, "The C++ Programming Language" (Addison-Wesley, 1985), 1991 .
.
Simula67 . C 1985 : , , . new, .
|
|
4. ++ . . . . , .
1. (/* ---- */) ++ // .
2. . . const. , const . ++ , .
12u[u]
12
// double
const double PI=3.14;
const double E=2.8;
//
const double *ptoconst=Π
//
double *const constpconst=&E;
//
const double *const constpconst=Π
*ptoconst=2.5; //.
ptoconst=Π //
constp=&E; //
*constp+=3.0;
++ inline, , . "", inline (, ) , , , , . ,
inline double Sqr(double x) {return x*x;}
Sqr(x) ( ) , x*x, x double. , Sqr(x) - (double y=x, y*y), .
: , , , (, -, , -, , .