.


:




:

































 

 

 

 


.




 

(constructor) , . new. .

(destructor) , . delete. ~ .

 

 

 

.

 

:

type m[10];

 

type, :

 

type:: type() {..} //

type:: type(int i = 0) {} //

 

 

 

type:: type (const type & x)

:

- type type;

- type ;

- type.

.

 

 

4.

 

.

 

:

 

type:: type (int); // int type.

 

explicit .

 

 

 

, , , , . , . .

 

:

 

type:: type (int t): i(7), j(t) //

{// }

 

.

. .

:

 

class vector{

public:

explicit vector (int n = 10); //

vector (const vector & v); //

vector (const int a[ ], int n); //

~vector () {delete [ ] p;} //

-- -- -- --

-- -- -- --

private:

int *p; //

int size; //

};

 

 

, IV, (. III), .

.

 

 

 

1. ?

2. ?

3. ?

4. ?

5. , ?

 

 

 

1. . - : . . .: , 1997. 464 .

2. . - ++: . . 2- . .: - ""; .: , 1999. 560 .

3. .. ++: . . 5- . .: , 2001.

4. . - ++: . . 2- . .: ; .: - "", 1999. 462 .

5. . ++: . . - 3- . .: : .: - "", 1999. - 991 .

6. .. - ++. .: , , 1999. 208 .

 


 

...................................................................................................... 3

I. ........................................... 4

II. ......................................................... 9

III. ............... 14

IV. .......................... 18

V. ..................... 22

................................................................... 25


 


..

: ..

021316 25 1998 .

 
 


25.12.02 . 27.02.03 .

. 25 . .-. . 0,8. 60´84 1/16. . . . 1,63.

. .

 

162600, . , . , 5





:


: 2016-07-29; !; : 618 |


:

:

, , .
==> ...

1914 - | 1555 -


© 2015-2024 lektsii.org - -

: 0.01 .