220                                             7. Ad hoc 

7.       -, 
 ,     . -
      -,   
 ,       
.  -   ,   
       , 
       .

8.         
   .      -
  ,  ,   -
.       :

_& operator[J ( );

 lvalue,         -
.



1.        . -
    ,    , 
  (  ,    ).

  

int i = 3, * = &i;

char  = 'b' ;

float x = 2.14, *q = &x;

		
i + 		
x + i		
p + i		
p == & i		
* p - * q		
staticcast<int>(x + i)		

2.   rational   7.2,    ,  . 193
,    7      7.0 -
    .

3.  ,      rational   7.2,
   ,  . 193:

cout  ") = "  greater(static_cast<rational>(i), z);

  

cout  ") = "  greater(i, z) ;

4.     rational,     -
    ,     